All pastes #41918 Raw Edit

Mine

public text v1 · immutable
#41918 ·published 2006-02-17 05:19 UTC
rendered paste body
                        foreach (MethodInfo method in type.GetMethods (BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance)) {
                                if (type.Namespace != "Cocoa") {
                                        ExportAttribute eattr = (ExportAttribute) Attribute.GetCustomAttribute (method, typeof (ExportAttribute));
                                        if (eattr != null)
                                                methods.Add (ObjCMethod.FromMethodInfo (method));
                                } else {
                                        methods.Add (ObjCMethod.FromMethodInfo (method));
                                }
                        }