Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 public MetaMember(MetaType metaType, PropertyInfo propertyInfo)
 {
     this.Member = propertyInfo;
     this.MetaType = metaType;
 }
Exemplo n.º 3
0
 public MetaMethod(MetaType metaType, MethodInfo methodInfo)
 {
     this.Method = methodInfo;
     this.MetaType = metaType;
 }