Exemplo n.º 1
0
 public AnonymousClrTypeRecord(AnonymousClrTypeRecord clr, string symbol, params TypeRecord[] genericTypes) : base(symbol)
 {
     this.clrType            = clr.clrType;
     this.GenericTypeRecords = genericTypes.ToList();
     this.IsFilledGeneric    = false;
     this.IsClrFilling       = false;
 }
Exemplo n.º 2
0
 public AnonymousClrTypeRecord(AnonymousClrTypeRecord clr, Type[] genericParameters, string symbol) : base(symbol)
 {
     if (clr.clrType.IsGenericTypeDefinition)
     {
         this.IsFilledGeneric   = true;
         this.GenericParameters = genericParameters.ToList();
         this.clrType           = clr.clrType.MakeGenericType(genericParameters);
     }
 }
Exemplo n.º 3
0
        public AnonymousClrTypeRecord(AnonymousClrTypeRecord clr, string symbol, params ClrTypeRecord[] genericParameters) : base(symbol)
        {
            List <Type> parameters = new List <Type>();

            foreach (var item in genericParameters)
            {
                parameters.Add(item.ClrType);
            }

            if (clr.clrType.IsGenericTypeDefinition)
            {
                this.IsFilledGeneric   = true;
                this.GenericParameters = parameters;
                this.clrType           = clr.clrType.MakeGenericType(parameters.ToArray());
            }
        }
Exemplo n.º 4
0
 public AnonymousClrTypeRecord(AnonymousClrTypeRecord clr, string symbol) : base(symbol)
 {
     this.clrType         = clr.clrType;
     this.IsFilledGeneric = false;
 }