Example #1
0
 internal static bool IsAnonymousMethod(DecompilerContext context, MethodDef method)
 {
     if (method == null || !(method.HasGeneratedName() || method.Name.Contains("$")))
     {
         return(false);
     }
     if (!(method.IsCompilerGenerated() || IsPotentialClosure(context, method.DeclaringType)))
     {
         return(false);
     }
     return(true);
 }