Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyType
- {
- [ContractAnnotation("throwOnNull:true => notnull")]
- public static Type GetType(string name, bool throwOnNull)
- {
- return null;
- }
- }
- var type = MyType.GetType("Some.Type", false);
- var typeName = type.FullName;
- var type = MyType.GetType("Some.Type", true);
- var typeName = type.FullName;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement