/// <summary>
        /// Returns the MetaType for the specified Type.
        /// </summary>
        /// <param name="type">The Type to provide the MetaType for.</param>
        /// <returns>The constructed MetaType.</returns>
        public static MetaType GetMetaType(Type type)
        {
            Debug.Assert(!TypeUtility.IsPredefinedType(type), "Should never attempt to create a MetaType for a base type.");

            MetaType metaType = null;
            if (!MetaTypes.TryGetValue(type, out metaType))
            {
                metaType = new MetaType(type);
                MetaTypes[type] = metaType;
            }
            return metaType;
        }
 public MetaMember(MetaType metaType, PropertyInfo propertyInfo)
 {
     this.Member = propertyInfo;
     this.MetaType = metaType;
 }
Esempio n. 3
0
 public MetaMethod(MetaType metaType, MethodInfo methodInfo)
 {
     this.Method = methodInfo;
     this.MetaType = metaType;
 }