Maps entities onto their constructed counterparts, substituting type arguments for generic parameters.
Пример #1
0
        public GenericConstructedMethod(TypeSystemServices tss, IMethod definition, IType[] arguments)
        {
            _tss = tss;
            _definition = definition;
            _genericArguments = arguments;

            _genericMapping = new GenericMapping(tss, this, arguments);

            _fullyConstructed = IsFullyConstructed();
        }
 public IMember Map(IMember member)
 {
     return((IMember)GenericMapping.Map(member));
 }
Пример #3
0
 protected GenericMappedMember(TypeSystemServices tss, T source, GenericMapping genericMapping)
 {
     _tss            = tss;
     _source         = source;
     _genericMapping = genericMapping;
 }
Пример #4
0
 public GenericMappedParameter(IParameter parameter, GenericMapping genericMapping)
 {
     _genericMapping = genericMapping;
     _baseParameter  = parameter;
 }
Пример #5
0
 public GenericMappedField(TypeSystemServices tss, IField source, GenericMapping genericMapping)
     : base(tss, source, genericMapping)
 {
 }
Пример #6
0
 public IMethod GetRaiseMethod()
 {
     return(GenericMapping.Map(Source.GetRemoveMethod()));
 }
Пример #7
0
 public IMethod GetAddMethod()
 {
     return(GenericMapping.Map(Source.GetAddMethod()));
 }
Пример #8
0
 public IEntity GetDefaultMember()
 {
     return(GenericMapping.Map(_definition.GetDefaultMember()));
 }
Пример #9
0
 public IParameter[] GetParameters()
 {
     return(_parameters ?? (_parameters = GenericMapping.Map(Source.GetParameters())));
 }
Пример #10
0
 public GenericMappedProperty(TypeSystemServices tss, IProperty source, GenericMapping genericMapping)
     : base(tss, source, genericMapping)
 {
 }
Пример #11
0
 public GenericMappedConstructor(TypeSystemServices tss, IConstructor source, GenericMapping genericMapping)
     : base(tss, (IMethod)source, genericMapping)
 {
 }
Пример #12
0
 public GenericMappedMethod(TypeSystemServices tss, IMethod source, GenericMapping genericMapping)
     : base(tss, source, genericMapping)
 {
 }
Пример #13
0
 protected GenericMappedAccessibleMember(TypeSystemServices tss, T source, GenericMapping genericMapping)
     : base(tss, source, genericMapping)
 {
 }
Пример #14
0
 public IConstructor[] GetConstructors()
 {
     return(Array.ConvertAll <IConstructor, IConstructor>(
                _definition.GetConstructors(),
                delegate(IConstructor c) { return GenericMapping.Map(c); }));
 }
 public IMember UnMap(IMember mapped)
 {
     return(GenericMapping.UnMap(mapped));
 }
Пример #16
0
 public GenericMappedEvent(TypeSystemServices tss, IEvent source, GenericMapping genericMapping)
     : base(tss, source, genericMapping)
 {
 }
Пример #17
0
 public IType GetElementType()
 {
     return(GenericMapping.Map(_definition.GetElementType()));
 }