Пример #1
0
            public Type FindClrTypeByFullName(string resourceTypeFullName)
            {
                Type type = this.reflectionDataContext.GetType().Assembly.GetTypes().Where <Type>(delegate(Type t) {
                    return(ReflectionDataContext.GetResourceTypeFullName(t) == resourceTypeFullName);
                }).FirstOrDefault <Type>();

                ExceptionUtilities.CheckObjectNotNull(type, "Unable to find type '{0}'", new object[] { resourceTypeFullName });
                return(type);
            }
Пример #2
0
 // Methods
 public ReflectionMetadataHelper(ReflectionDataContext reflectionDataContext)
 {
     this.reflectionDataContext = reflectionDataContext;
 }