Example #1
0
        public GStoreObject(GStoreObjectIdentifier identifier, string value)
        {
            ValidateParameters(identifier, value);

            Identifier = identifier;
            Value      = value;
        }
Example #2
0
        private void ValidateParameters(GStoreObjectIdentifier identifier, string value)
        {
            if (string.IsNullOrEmpty(value))
            {
                throw new ArgumentException("value parameter can't be null or empty.");
            }

            if (identifier == null)
            {
                throw new ArgumentException("identifier parameter can't be null");
            }
        }