Exemple #1
0
 internal MemberResolutionResult(TMember member, TMember leastOverriddenMember, MemberAnalysisResult result, bool hasTypeArgumentInferredFromFunctionType = false)
 {
     _member = member;
     _leastOverriddenMember = leastOverriddenMember;
     _result = result;
     HasTypeArgumentInferredFromFunctionType = hasTypeArgumentInferredFromFunctionType;
 }
 internal MemberResolutionResult <TMember> Worst()
 {
     return(new MemberResolutionResult <TMember>(
                Member,
                LeastOverriddenMember,
                MemberAnalysisResult.Worst()
                ));
 }
 internal MemberResolutionResult(
     TMember member,
     TMember leastOverriddenMember,
     MemberAnalysisResult result
     )
 {
     _member = member;
     _leastOverriddenMember = leastOverriddenMember;
     _result = result;
 }
 internal MemberResolutionResult(TMember member, TMember leastOverriddenMember, MemberAnalysisResult result)
 {
     this.member = member;
     this.leastOverriddenMember = leastOverriddenMember;
     this.result = result;
 }
 internal MemberResolutionResult <TMember> Worse()
 {
     return(WithResult(MemberAnalysisResult.Worse()));
 }
 internal MemberResolutionResult <TMember> WithResult(MemberAnalysisResult result)
 {
     return(new MemberResolutionResult <TMember>(Member, LeastOverriddenMember, result, HasTypeArgumentInferredFromFunctionType));
 }