public SreMethodBuilder(SreTypeSystem system, MethodBuilder methodBuilder, IReadOnlyList <IXamlType> parameters) : base(system, methodBuilder) { MethodBuilder = methodBuilder; Generator = new IlGen(system, methodBuilder.GetILGenerator()); _parameters = parameters; }
public SreCustomAttribute(SreTypeSystem system, CustomAttributeData data, IXamlType type) { Type = type; _data = data; Parameters = data.ConstructorArguments.Select(p => p.Value is Type t ? system.ResolveType(t) : p.Value ).ToList(); Properties = data.NamedArguments?.ToDictionary(x => x.MemberName, x => x.TypedValue.Value) ?? new Dictionary <string, object>(); }
public SreConstructorBuilder(SreTypeSystem system, ConstructorBuilder ctor) : base(system, ctor) { Generator = new IlGen(system, ctor.GetILGenerator()); }
public SreTypeBuilder(SreTypeSystem system, TypeBuilder tb) : base(system, null, tb) { _system = system; _tb = tb; }
public IlGen(SreTypeSystem system, ILGenerator ilg) { TypeSystem = system; _ilg = ilg; LocalsPool = new XamlLocalsPool(t => this.DefineLocal(t)); }
public SreField(SreTypeSystem system, FieldInfo field) : base(system, field) { Field = field; FieldType = system.ResolveType(field.FieldType); }
public SreEvent(SreTypeSystem system, EventInfo ev) : base(system, ev) { Event = ev; Add = new SreMethod(system, ev.AddMethod); }
public SreProperty(SreTypeSystem system, PropertyInfo member) : base(system, member) { Member = member; Setter = member.SetMethod == null ? null : new SreMethod(system, member.SetMethod); Getter = member.GetMethod == null ? null : new SreMethod(system, member.GetMethod); }
public SreConstructor(SreTypeSystem system, ConstructorInfo ctor) : base(system, ctor) { Constuctor = ctor; }
public SreMethod(SreTypeSystem system, MethodInfo method) : base(system, method) { Method = method; _system = system; }
public SreMethodBase(SreTypeSystem system, MethodBase method) : base(system, method) { _method = method; }
public SreType(SreTypeSystem system, SreAssembly asm, Type type) : base(system, type) { Assembly = asm; Type = type; }
public SreMemberInfo(SreTypeSystem system, MemberInfo member) { System = system; _member = member; }
public SreAssembly(SreTypeSystem system, Assembly asm) { _system = system; Assembly = asm; }