BACnet.Ashrae.Recipient.Load C# (CSharp) Méthode

Load() public static méthode

public static Load ( IValueStream stream ) : Recipient
stream IValueStream
Résultat Recipient
        public static Recipient Load(IValueStream stream)
        {
            Recipient ret = null;
            Tags tag = (Tags)stream.EnterChoice();
            switch(tag)
            {
                case Tags.Device:
                    ret = Value<DeviceWrapper>.Load(stream);
                    break;
                case Tags.Address:
                    ret = Value<AddressWrapper>.Load(stream);
                    break;
                default:
                    throw new Exception();
            }
            stream.LeaveChoice();
            return ret;
        }