コード例 #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;
        }
コード例 #2
0
 public MetaMember(MetaType metaType, PropertyInfo propertyInfo)
 {
     this.Member = propertyInfo;
     this.MetaType = metaType;
 }
コード例 #3
0
ファイル: MetaType.cs プロジェクト: kouweizhong/openair
 public MetaMethod(MetaType metaType, MethodInfo methodInfo)
 {
     this.Method = methodInfo;
     this.MetaType = metaType;
 }