public MetadataParameterInfoAdapter(MetadataTypeInfoAdapter2 typeInfo, 
     MetadataMethodInfoAdapter2 methodInfo, IMetadataParameter parameter)
 {
     this.typeInfo = typeInfo;
     this.methodInfo = methodInfo;
     this.parameter = parameter;
 }
예제 #2
0
 private MetadataMethodInfoAdapter2(MetadataTypeInfoAdapter2 typeInfo, IMetadataMethod method,
                                    ITypeInfo[] substitutions)
 {
     this.typeInfo      = typeInfo;
     this.method        = method;
     this.substitutions = substitutions;
 }
 private MetadataMethodInfoAdapter2(MetadataTypeInfoAdapter2 typeInfo, IMetadataMethod method,
     ITypeInfo[] substitutions)
 {
     this.typeInfo = typeInfo;
     this.method = method;
     this.substitutions = substitutions;
 }
 public MetadataParameterInfoAdapter(MetadataTypeInfoAdapter2 typeInfo,
                                     MetadataMethodInfoAdapter2 methodInfo, IMetadataParameter parameter)
 {
     this.typeInfo   = typeInfo;
     this.methodInfo = methodInfo;
     this.parameter  = parameter;
 }
        public static ITypeInfo GetType(IMetadataType type, MetadataTypeInfoAdapter2 typeInfo,
            MetadataMethodInfoAdapter2 methodInfo)
        {
            var classType = type as IMetadataClassType;
            if (classType != null)
                return new MetadataTypeInfoAdapter2(classType);

            var argumentReferenceType = type as IMetadataGenericArgumentReferenceType;
            if (argumentReferenceType != null)
                return GetTypeFromGenericArgumentReferenceType(argumentReferenceType, typeInfo, methodInfo);

            return null;
        }
예제 #6
0
        public static ITypeInfo GetType(IMetadataType type, MetadataTypeInfoAdapter2 typeInfo,
                                        MetadataMethodInfoAdapter2 methodInfo)
        {
            var classType = type as IMetadataClassType;

            if (classType != null)
            {
                return(new MetadataTypeInfoAdapter2(classType));
            }

            var argumentReferenceType = type as IMetadataGenericArgumentReferenceType;

            if (argumentReferenceType != null)
            {
                return(GetTypeFromGenericArgumentReferenceType(argumentReferenceType, typeInfo, methodInfo));
            }

            return(null);
        }
 public MetadataMethodInfoAdapter2(MetadataTypeInfoAdapter2 typeInfo, IMetadataMethod method)
     : this(typeInfo, method, null)
 {
 }
예제 #8
0
 public MetadataMethodInfoAdapter2(MetadataTypeInfoAdapter2 typeInfo, IMetadataMethod method)
     : this(typeInfo, method, null)
 {
 }