Exemple #1
0
        public static TField FieldOf <TField, TFieldParent>(this string name, IFieldParent <TField, TFieldParent> fieldParent)
            where TField :
        IFieldMember <TField, TFieldParent>
            where TFieldParent :
        IFieldParent <TField, TFieldParent>
        {
            TField result;

            fieldParent.Fields.TryGetValue(TypeSystemIdentifiers.GetMemberIdentifier(name), out result);
            return(result);
        }
Exemple #2
0
        public static IConstructorParameterMember <TCtor, TType> ParamOf <TCtor, TType>(this string name, IConstructorMember <TCtor, TType> ctor)
            where TCtor :
        IConstructorMember <TCtor, TType>
            where TType :
        ICreatableParent <TCtor, TType>
        {
            IConstructorParameterMember <TCtor, TType> result;

            ctor.Parameters.TryGetValue(TypeSystemIdentifiers.GetMemberIdentifier(name), out result);
            return(result);
        }
Exemple #3
0
        public static IIndexerSignatureParameterMember <TIndexer, TIndexerParent> ParamOf <TIndexer, TIndexerParent>(this string name, IIndexerSignatureMember <TIndexer, TIndexerParent> indexer)
            where TIndexer :
        IIndexerSignatureMember <TIndexer, TIndexerParent>
            where TIndexerParent :
        IIndexerSignatureParent <TIndexer, TIndexerParent>
        {
            IIndexerSignatureParameterMember <TIndexer, TIndexerParent> result;

            indexer.Parameters.TryGetValue(TypeSystemIdentifiers.GetMemberIdentifier(name), out result);
            return(result);
        }
Exemple #4
0
        public static IMethodParameterMember <TMethod, TMethodParent> ParamOf <TMethod, TMethodParent>(this string name, IMethodMember <TMethod, TMethodParent> method)
            where TMethod :
        IMethodMember <TMethod, TMethodParent>
            where TMethodParent :
        IMethodParent <TMethod, TMethodParent>
        {
            IMethodParameterMember <TMethod, TMethodParent> result;

            method.Parameters.TryGetValue(TypeSystemIdentifiers.GetMemberIdentifier(name), out result);
            return(result);
        }