Skip to main content
0 votes
1 answer
96 views

I am working on a chess game in unity. I have a multidimensional array of objects called a board that gives me the the array with either a Piece Object(custom) or an integer i.e. 0. I want to check if ...
Divyam Sud's user avatar
2 votes
1 answer
85 views

Sometimes DateTime.UtcNow returns me different length of milliseconds: 2025-02-27T06:01:59.7581509Z 2025-02-27T06:21:48.190694Z The difference is between length of milliseconds. So 7581509 has length ...
Learner's user avatar
  • 675
0 votes
0 answers
38 views

I Am Making A Mini Game That Is Not Important But Here Is What I Got Rn That's What It Looks Lik If (Int.tryparse(userinput2, Out Idk What Out Means)) Like I Said I Tried This Method And I Don't Want ...
Bartosz Baszyński's user avatar
0 votes
0 answers
51 views

I've built a plot of influential people across history on a timeline using C# in Unity3D. I run a Validate() method over the .json and then construct gameobjects. The code successfully plots people ...
MaxK's user avatar
  • 11
-1 votes
2 answers
125 views

I have found many questions for this topic but I couldn't find one that covers my case. For a string input, which may be or may not be a real number of unknown culture, how can I try to cast it to a ...
Tsaras's user avatar
  • 493
-2 votes
1 answer
155 views

I'm working with TryParseExact but it's throwing an error. What could be the issue? Thanks DateTime result; if (DateTime.TryParseExact("31 December, 2023", ["'dd MMMM, yyyy'"], ...
Nikkawat's user avatar
-1 votes
2 answers
176 views

I have a string "2023-04-13T07:03:20-03:00", and I want to convert to DateTime with a specific format "yyyy-MM-ddTHH:mm:ss", so i'm using the TryParseExact method, but I just ...
Calendoscopio's user avatar
1 vote
1 answer
397 views

I'm trying to implement a TextBox validation for user input of dates. Long story short, I'm building a new application and the users are accustomed to entering dates this way, so I want to try and ...
G_Hosa_Phat's user avatar
  • 1,110
0 votes
1 answer
69 views

WriteLine("Before parsing"); Write("What is your age? "); string? input = ReadLine(); // or use "49" in a notebook try { int age = int.Parse(input!); WriteLine($&...
CSharp2023's user avatar
-1 votes
2 answers
205 views

if (response.ToLower() == "addition") { Console.Write("Enter a number: "); double num1 = double.Parse(Console.ReadLine()); Console.Write("Enter another number: "); ...
Nitik Paudel's user avatar
0 votes
1 answer
104 views

I have a strange problem. When my custom formatted Hex value is tested with double.Tryparse it returns inconsistent results For example if (double.TryParse(dblValue, NumberStyles.Float, CultureInfo....
CupOfT's user avatar
  • 11
0 votes
2 answers
363 views

I have a process that allows users to upload data in Excel file and save to database once the data have gone series of validations . Once such validation is data type validation, to prevent them ...
LUAN-I JACKSON's user avatar
-1 votes
1 answer
198 views

I want to change the NAN result in the text label to 0. is there a solution in the recommendation?. Thanks Private Sub Calculatedispercent() Dim DisTotal As Double Dim Total As ...
roy's user avatar
  • 729
3 votes
2 answers
2k views

I have a string text that i want to parse/convert to DateTime, the text can have a different formats (depending on the user who write it), it can be "dd/MM/yyyy" or it can be "MM/dd/...
Bola Adel Nassif's user avatar
-2 votes
1 answer
39 views

I'm attempting to create a wpf app that takes a list of numerical values, separated by line breaks, in one textbox. You click a button, and it outputs the new numerical values into a second textbox. I'...
Dylan Townes's user avatar

15 30 50 per page
1
2 3 4 5
22