ArgsTests.NullableGuidReviver.Revive C# (CSharp) 메소드

Revive() 개인적인 메소드

private Revive ( string key, string value ) : Nullable
key string
value string
리턴 Nullable
        public static Nullable<Guid> Revive(string key, string value)
        {
            Guid ret;
            if(Guid.TryParse(value,out ret) == false)
            {
                throw new ValidationArgException("Bad GUID: CUSTOM MESSAGE");
            }
            return ret;
        }
NullableGuidReviver