BACnet.Client.Descriptors.DeviceInfo.CopyFrom C# (CSharp) Method

CopyFrom() public method

Copies this object's properties from another
public CopyFrom ( object other ) : void
other object The object to copy from
return void
        public override void CopyFrom(object other)
        {
            var di = other as DeviceInfo;
            if(di != null)
            {
                base.CopyFrom(di);
                this.DatabaseRevision = di.DatabaseRevision;
            }
        }

Usage Example

Example #1
0
        /// <summary>
        /// Creates a clone of this descriptor
        /// </summary>
        /// <returns>The cloned descriptor</returns>
        public override object Clone()
        {
            var clone = new DeviceInfo(VendorId, DeviceInstance, ObjectIdentifier);

            clone.CopyFrom(this);
            return(clone);
        }
All Usage Examples Of BACnet.Client.Descriptors.DeviceInfo::CopyFrom