private Guid ComputeValue() { Guid?nullable; if (EdmValueParser.TryParseGuid(this.expression.Value, out nullable)) { return(nullable.Value); } else { return(Guid.Empty); } }
private IEnumerable <EdmError> ComputeErrors() { Guid?nullable; if (EdmValueParser.TryParseGuid(this.expression.Value, out nullable)) { return(Enumerable.Empty <EdmError>()); } else { EdmError[] edmError = new EdmError[1]; edmError[0] = new EdmError(base.Location, EdmErrorCode.InvalidGuid, Strings.ValueParser_InvalidGuid(this.expression.Value)); return(edmError); } }