Answers for "c# auto convert type"

C#
1

convert generic to type c#

(SomeClass)Convert.ChangeType(T, typeof(SomeClass));
Posted by: Guest on May-21-2020
1

dynamic convert type c#

public static dynamic Convert(dynamic source, Type dest) {
  return Convert.ChangeType(source, dest);
}
Posted by: Guest on March-12-2020

C# Answers by Framework

Browse Popular Code Answers by Language