For numbers it works fine. But for string it will not, becasue you are calling Utility.GetNumber
which only retuuns number
More Related Contents:
- Update all objects in a collection using LINQ
- How does foreach work when looping through function results?
- Linq style “For Each” [duplicate]
- Starting a new thread in a foreach loop
- Why can’t I do foreach (var Item in DataTable.Rows)?
- List box Object reference not set to an instance of an object
- Remove element of a regular array
- C# DateTime.Now precision
- Why can’t I have abstract static methods in C#?
- Unrecognized escape sequence for path string containing backslashes
- .NET HashTable Vs Dictionary – Can the Dictionary be as fast?
- WPF Application that only has a tray icon
- How the StringBuilder class is implemented? Does it internally create new string objects each time we append?
- Get value of a public static field via reflection
- In .NET/C# test if process has administrative privileges
- How expensive is the lock statement?
- Intersect LINQ query
- String.Format – how it works and how to implement custom formatstrings
- cannot implicitly convert type ‘bool?’ to ‘bool’. An explicit conversion exists (are you missing a cast?)
- Convert file path to a file URI?
- Best C# API to create PDF [closed]
- Check if an executable exists in the Windows path
- What does “DisplayClass” name mean when calling lambda?
- What value should I pass into TimeZoneInfo.FindSystemTimeZoneById(String)?
- Checking if an object is a number
- LINQ query to return a Dictionary
- Is it better to execute many sql commands with one connection, or reconnect every time?
- How do you get XML comments to appear in a different project (dll)?
- MessageBox buttons – set language?
- Why are signed assemblies slow to load?