C
C#

help

masking

Tturtlesx10/21/2022
How do I specify how many characters I want to mask
Tturtlesx10/21/2022
I am unable to use mask on C#
AAngius10/21/2022
Why are you converting a string to a string? And what do you mean by "mask"?
Tturtlesx10/21/2022
basically X out the string
AAngius10/21/2022
When entering it, or when printing it out?
Tturtlesx10/21/2022
printing
AAngius10/21/2022
Using the string constructor to create a string with n letters X in it would be one part of it Cutting out the first n characters of your string would be the second
Tturtlesx10/21/2022
as i want to mask out the front character specified by me\
AAngius10/21/2022
Joining those strings together would be the last
Tturtlesx10/21/2022
like how many char i want to X out
AAngius10/21/2022
That'd be the n
Tturtlesx10/21/2022
I do not understand
AAngius10/21/2022
Tturtlesx10/21/2022
Sry as i am quite new to c#
AAngius10/21/2022
This will create a string with 7 *s in it So that's the first part of solving your problem
Tturtlesx10/21/2022
Cool
AAngius10/21/2022
This will take only some part of the string So that solves the second part
AAngius10/21/2022
And this concatenates two strings together
Tturtlesx10/21/2022
like using existing string I want to X it out
AAngius10/21/2022
Cool I know I gave you the solution, now it's on you to implement it If you're expecting to be spoonfed a ready-made solution, I have bad news for you
Tturtlesx10/21/2022
ahhh thx for your help

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Proper syntax (or usage) for unsigned intHow does one properly use an unsigned int in C#? I'm getting conflicting information from google aboHow do I sort lists from a text fileJust curious how to take lines from a text file into a list then sort the list in terms of highest sEF Core is throwing DbUpdateConcurrencyException, but only on the production database (MySQL)I am trying to deploy a web application to a server, but I'm running into a weird issue. There is a OnTriggerEnter - When player is in zone for 3 seconds, take damage HelpSorry, I technically posted this a minute ago but due to a radical change in my script, I decided toEF Core Razor Pages and an MSSQL ViewHi Everyone, i am trying to create an Page in Razor for an MSSQL View. I have two tables shown in thSlash Command optional parameter [Answered]Hi, I'm currently working on a poll command where I'm using SelectMenuBuilder and I want for there tReferencing a nuget package without ever restoring itI have a nuget package **A** that only includes native binaries (packaged using a .nuspec file). Inpm won't install a package published just an hour agoWhen I run `npm install multiple-cucumber-html-reporter` I get the following error: ```ps npm ERR! cStackExchange.Redis RedisJSONHey! 👋 any idea, how I can use RedisJSON(<https://redis.io/docs/stack/json/>) with StackExchange.Re(Solved) Allow Unsafe Code - VS MacOS [Answered]Hi! I can't seem to find the "Allow unsafe code" checkbox in VS on my mac, despite searching online.debugging issueHello folks, I have a problem I hope I can explain what's happening. When I have break points on cerforce 'normal' standards for parsing decimal numbers from stringI want to force my ASP.NET API to parse numbers as '102.28', currently it throws an error because itNullable strings in .net 6So I'm a little bit new to .NET 6 coming from .NET framework. Do we have to make a `string` `striCryptoStream decrypt encryptI have a class to encrypt and decrypt strings but for some reason i get an exception: **System.SecuMySQL Connector Paramerts.AddWithValue, not working?Hello, I'm trying to do a prepared mysql query, however it doesn't seem to wanna bind my values. MyHow do I efficiently stream data to disk from a websocket client?I'm consuming realtime data from a websocket client and I want to be writing it into a .txt file. `Is there a good way to use a object from Type Type in a generic method?```c Type type = typeof(object); GenericMethod</*use Type here*/>(); ``` I have a lot of seriaGit Moving from feature branch to main [Answered]Hi! I have made a new branch for a new feature and have made some commits in there, how can I push tSlash Command purge [Answered]Hi, I'm trying to use my old purge command as a slash command, but I end up giving me the Discord Erwait for processes [closed]I want to wait for a process to close to perform some action how can I do that?