BACnet.Ashrae.CreateObjectRequest.ObjectSpecifierType.Load C# (CSharp) Method

Load() public static method

public static Load ( IValueStream stream ) : ObjectSpecifierType
stream IValueStream
return ObjectSpecifierType
            public static ObjectSpecifierType Load(IValueStream stream)
            {
                ObjectSpecifierType ret = null;
                Tags tag = (Tags)stream.EnterChoice();
                switch(tag)
                {
                    case Tags.ObjectType:
                        ret = Value<ObjectTypeWrapper>.Load(stream);
                        break;
                    case Tags.ObjectIdentifier:
                        ret = Value<ObjectIdentifierWrapper>.Load(stream);
                        break;
                    default:
                        throw new Exception();
                }
                stream.LeaveChoice();
                return ret;
            }
CreateObjectRequest.ObjectSpecifierType