By tag: ToString
0
kicks
Take control of DateTime’s ToString() method.
An example how to format DateTime with ToString() method.
0
kicks
Useful Extension Method On String
.NET Framework provides String.IsNullOrEmpty() method which return true if the string is null or empty. It does not however take care of a string which only contains spaces. Often while persisting data we do not want to persist just empty strings. In past I have made this check before I let my data ...
0
kicks
Overriding ToString for Easier Debugging
Did you know that you can override the ToString() method to make the debugger show you more information about your objects in the watch window. It's quick, it's easy, and it really works!
0
kicks
Always implement the ToString() method
Implementing the ToString() method make debugging a whole lot easier
0
kicks
Custom object and ToString()
It is known that in the C # any object can be shown in the form of string by the method ToString () but what to do if you need to make such an operation with custom object?
That is one solution....