Пример #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="portables">Portables.</param>
        /// <param name="parent">Parent builder.</param>
        /// <param name="obj">Initial portable object.</param>
        /// <param name="desc">Type descriptor.</param>
        public PortableBuilderImpl(PortablesImpl portables, PortableBuilderImpl parent,
                                   PortableUserObject obj, IPortableTypeDescriptor desc)
        {
            _portables = portables;
            _parent    = parent ?? this;
            _obj       = obj;
            _desc      = desc;

            _hashCode = obj.GetHashCode();
        }
Пример #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="portables">Portables.</param>
 /// <param name="obj">Initial portable object.</param>
 /// <param name="desc">Type descriptor.</param>
 public PortableBuilderImpl(PortablesImpl portables, PortableUserObject obj,
                            IPortableTypeDescriptor desc) : this(portables, null, obj, desc)
 {
     // No-op.
 }