Пример #1
0
 public static IResourceName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : SpnName.TryParse(name) ?? ((IResourceName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }
Пример #2
0
 public static ISecurityPrincipalName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : ((ISecurityPrincipalName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }