Esempio n. 1
0
            public void Init()
            {
                var types = Assembly.GetExportedTypes().Select(t => _system.ResolveType(t)).ToList();

                Types    = types;
                _typeDic = types.ToDictionary(t => t.Type.FullName);
            }
Esempio n. 2
0
 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>();
 }
Esempio n. 3
0
 public SreField(SreTypeSystem system, FieldInfo field) : base(system, field)
 {
     Field     = field;
     FieldType = system.ResolveType(field.FieldType);
 }