示例#1
0
        public override MemberRef PrimSubstitute(IImSeq <TypeRef> typeBoundArguments, IImSeq <TypeRef> methodBoundArguments)
        {
            var methodTypeArguments = default(Seq <TypeRef>);

            if (MethodTypeArguments.Count > 0)
            {
                methodTypeArguments =
                    MethodTypeArguments.Select(type => type.PrimSubstitute(typeBoundArguments, methodBoundArguments)).
                    ToSeq();
            }
            return(new MethodRef
                       (Annotations,
                       DefiningType.PrimSubstitute(typeBoundArguments, methodBoundArguments),
                       signature,
                       methodTypeArguments));
        }
示例#2
0
 public override MemberRef PrimSubstitute(IImSeq <TypeRef> typeBoundArguments, IImSeq <TypeRef> methodBoundArguments)
 {
     return(new EventRef(Annotations, DefiningType.PrimSubstitute(typeBoundArguments, methodBoundArguments), signature));
 }