Exemplo n.º 1
0
        private IList<RuntimeField> GetFields()
        {
            this.ProcessSignature();

            List<RuntimeField> fields = new List<RuntimeField>();
            foreach (CilRuntimeField field in this.genericType.Fields)
            {
                FieldSignature fsig = new FieldSignature();
                    fsig.LoadSignature(this, this.genericType.Module.Metadata, field.Signature.Token);

                CilGenericField genericInstanceField = new CilGenericField(this, field, fsig);
                fields.Add(genericInstanceField);
            }

            return fields;
        }
Exemplo n.º 2
0
        private IList<RuntimeField> GetFields()
        {
            List<RuntimeField> fields = new List<RuntimeField>();
            foreach (CilRuntimeField field in this.genericType.Fields)
            {
                FieldSignature signature = new FieldSignature(field.MetadataModule.Metadata, field.Signature.Token);

                signature.ApplyGenericType(this.genericArguments);

                CilGenericField genericInstanceField = new CilGenericField(moduleTypeSystem, field, signature, this);

                fields.Add(genericInstanceField);
            }

            return fields;
        }