private static bool FromStringToGuid <G>(string from, G defaultVal, out object result) { result = GuidConv.StringToGuid(from, GuidConv.ObjToGuid(defaultVal)); return(true); }
/// <summary> /// Convert <see cref="object"/> to <see cref="Guid"/> /// </summary> /// <param name="obj"></param> /// <param name="defaultVal"></param> /// <returns></returns> public static Guid ToGuid(object obj, Guid defaultVal = default) => GuidConv.ObjToGuid(obj, defaultVal);