Exemple #1
0
 /// <summary>
 /// Adds a <typeparamref name="TSignature"/> instance
 /// to the <see cref="IntermediateGroupedMethodSignatureMemberDictionary{TSignatureParameter, TIntermediateSignatureParameter, TSignature, TIntermediateSignature, TSignatureParent, TIntermediateSignatureParent}"/>
 /// by the <paramref name="key"/> provided.
 /// </summary>
 /// <param name="key">The <see cref="String"/> value which represents the key to use to
 /// insert the <paramref name="value"/> provided.</param>
 /// <param name="value">The <typeparamref name="TSignature"/>
 /// to insert.</param>
 protected internal override void _Add(IGeneralGenericSignatureMemberUniqueIdentifier key, TSignature value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     if (!(value is TIntermediateSignature))
     {
         throw ThrowHelper.ObtainArgumentException(ArgumentWithException.value, ExceptionMessageId.ValueIsWrongType, ThrowHelper.GetArgumentName(ArgumentWithException.value), value.GetType().ToString(), typeof(TIntermediateSignature).ToString());
     }
     base._Add(key, value);
 }
Exemple #2
0
 public EventMethodMember(ICliMetadataMethodDefinitionTableRow metadataEntry, _ICliAssembly assembly, EventMember parent, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier, EventMethodType methodType)
     : base(metadataEntry, assembly, parent.Parent, uniqueIdentifier)
 {
     this.MethodType = methodType;
 }
Exemple #3
0
 internal MethodMember(ICliMetadataMethodDefinitionTableRow metadataEntry, _ICliAssembly assembly, IStructType parent, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(metadataEntry, assembly, parent, uniqueIdentifier)
 {
     this.uniqueIdentifier = uniqueIdentifier;
 }
Exemple #4
0
 public MethodMember(ICliMetadataMethodDefinitionTableRow metadataEntry, _ICliAssembly assembly, IStructType parent, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier, PropertyMethodType methodType)
     : base(metadataEntry, assembly, parent, uniqueIdentifier)
 {
     this.methodType = methodType;
 }
Exemple #5
0
        public override IIntermediateClassMethodMember CreateVariationBuilderMethod(string methodName, IGeneralGenericSignatureMemberUniqueIdentifier methodSignature, IInterfaceMethodMember interfaceMethodMember, VisitorImplementationVariationContext variation, VisitorBuilder visitorBuilder, IInterfaceType relevantBuilderInterface, IVisitorImplementationBuilder implementationBuilder)
        {
            var result = base.CreateVariationBuilderMethod(methodName, methodSignature, interfaceMethodMember, variation, visitorBuilder, relevantBuilderInterface, implementationBuilder);

            if (!result.IsAbstract)
            {
                result.IsVirtual = true;
                result.Return(result.Parameters.Values[0].GetReference());
            }
            return(result);
        }
Exemple #6
0
 internal Method(CliInterfaceType parent, ICliMetadataMethodDefinitionTableRow metadataEntry, PropertyMethodType propertyMethodType, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(parent, metadataEntry, uniqueIdentifier)
 {
     this.propertyMethodType = propertyMethodType;
 }
Exemple #7
0
 internal Method(CliInterfaceType parent, ICliMetadataMethodDefinitionTableRow metadataEntry, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(metadataEntry, parent.Assembly, parent, uniqueIdentifier)
 {
 }
Exemple #8
0
 protected CliMethodSignatureBase(ICliMetadataMethodDefinitionTableRow metadata, _ICliAssembly assembly, TSignatureParent parent, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(metadata, assembly, parent, uniqueIdentifier)
 {
 }
Exemple #9
0
 protected override IClassMethodMember GetMethod(ICliMetadataMethodDefinitionTableRow metadataEntry, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier)
 {
     return(new MethodMember(metadataEntry, (_ICliAssembly)this.Assembly, this, uniqueIdentifier));
 }
Exemple #10
0
 protected abstract TMethod GetMethod(ICliMetadataMethodDefinitionTableRow metadataEntry, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier);
Exemple #11
0
 /// <summary>
 /// Creates a new <see cref="CliModuleMethod"/> with the
 /// <paramref name="metadata"/>, <paramref name="manager"/>, and <paramref name="owner"/> provided.
 /// </summary>
 /// <param name="metadata">The <see cref="ICliMetadataMethodDefinitionTableRow"/> from which the
 /// <see cref="CliModuleMethod"/> is derived.</param>
 /// <param name="assembly">The <see cref="_ICliAssembly"/> which contains the <see cref="CliModuleMethod"/>.</param>
 /// <param name="owner">The <see cref="ICliModule"/> from which the
 /// <see cref="CliModuleMethod"/> is derived.</param>
 internal CliModuleMethod(ICliMetadataMethodDefinitionTableRow metadata, _ICliAssembly assembly, ICliModule owner, IGeneralGenericSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(metadata, assembly, owner, uniqueIdentifier)
 {
 }