예제 #1
0
 public static string GetResponseProxyAttribute(this CodeTypeDeclaration type)
 {
     try
     {
         return(((CodePrimitiveExpression)type.GetCustomAttribute("Microsoft.Xrm.Sdk.Client.ResponseProxyAttribute")?.Arguments[0].Value)?.Value.ToString());
     }
     catch (Exception ex)
     {
         throw new Exception("Unable to get the EntityLogicalName for " + type.Name, ex);
     }
 }