Ejemplo n.º 1
0
        public PropertyValue(string id, IPinDataType type, object value, bool connect)
        {
            var result = type.Validate(value);

            if (!result.IsValid)
            {
                throw new PinDataTypeValidationError(result.Message);
            }

            this.Id      = id;
            this.Type    = type;
            this.Value   = value;
            this.Connect = connect;
        }