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

Load() public static method

public static Load ( IValueStream stream ) : Scale
stream IValueStream
return Scale
        public static Scale Load(IValueStream stream)
        {
            Scale ret = null;
            Tags tag = (Tags)stream.EnterChoice();
            switch(tag)
            {
                case Tags.FloatScale:
                    ret = Value<FloatScaleWrapper>.Load(stream);
                    break;
                case Tags.IntegerScale:
                    ret = Value<IntegerScaleWrapper>.Load(stream);
                    break;
                default:
                    throw new Exception();
            }
            stream.LeaveChoice();
            return ret;
        }