BACnet.Ashrae.ClientCOV.Load C# (CSharp) Method

Load() public static method

public static Load ( IValueStream stream ) : ClientCOV
stream IValueStream
return ClientCOV
        public static ClientCOV Load(IValueStream stream)
        {
            ClientCOV ret = null;
            Tags tag = (Tags)stream.EnterChoice();
            switch(tag)
            {
                case Tags.RealIncrement:
                    ret = Value<RealIncrementWrapper>.Load(stream);
                    break;
                case Tags.DefaultIncrement:
                    ret = Value<DefaultIncrementWrapper>.Load(stream);
                    break;
                default:
                    throw new Exception();
            }
            stream.LeaveChoice();
            return ret;
        }