Пример #1
0
 internal WZDelayedProperty(string name, WZObject parent, WZImage container, WZBinaryReader r, bool children,
                            WZObjectType type)
     : base(name, parent, default(T), container, children, type)
 {
     _offset = r.Position;
     _parsed = Parse(r, true, out _value);
     _r      = r;
 }
Пример #2
0
 internal WZObject(string name, WZObject parent, WZFile container, bool children, WZObjectType type)
 {
     Name   = string.Intern(name);
     Parent = parent;
     File   = container;
     _canContainChildren = children;
     if (_canContainChildren)
     {
         _backing = new ChildCollection();
     }
     Type = type;
 }
Пример #3
0
 internal WZProperty(string name, WZObject parent, T value, WZImage container, bool children, WZObjectType type)
     : base(name, parent, container.File, children, type)
 {
     _value = value;
     Image  = container;
 }