Ejemplo n.º 1
0
 public static void GenerateProgIdForType()
 {
     AssertExtensions.Throws <ArgumentNullException>("type", () => Marshal.GenerateProgIdForType(null));
     Assert.Equal("TestProgID", Marshal.GenerateProgIdForType(typeof(ClassWithProgID)));
 }
Ejemplo n.º 2
0
 public virtual string GetProgIdForType(Type type)
 {
     return(Marshal.GenerateProgIdForType(type));
 }