Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

casting to class

Mar 5 2003 3:46 AM
Does anybody know how can I cast an int to my class? public class MyClass { ... public static explicit operator MyClass(int i) { ???? } ... }