private IEnumerable <ICustomAttribute> WriteMethodFieldsAsAttributes(MethodDefinition method) { List <ICustomAttribute> attributes = new List <ICustomAttribute>(); // write [DllImport(dllName,CharSet=CharSet.*)] attribute if (method.HasPInvokeInfo) { attributes.Add(AttributesUtilities.GetMethodDllImportAttribute(method)); } return(attributes); }
private IEnumerable <ICustomAttribute> WriteMethodFieldsAsAttributes(MethodDefinition method) { V_0 = new List <ICustomAttribute>(); if (method.get_HasPInvokeInfo()) { V_0.Add(AttributesUtilities.GetMethodDllImportAttribute(method)); } if (method.get_HasImplAttributes() && AttributesUtilities.ShouldWriteMethodImplAttribute(method)) { V_0.Add(AttributesUtilities.GetMethodImplAttribute(method)); } return(V_0); }