public static CallingConvention GetCallingConvention(NativeApiAttribute attr, NativeApiAttribute parent) { return(attr?.Convention ?? parent?.Convention ?? CallingConvention.Cdecl); }
public static string GetEntryPoint(NativeApiAttribute attr, NativeApiAttribute parent, string method) { return((string.IsNullOrEmpty(attr?.Prefix) ? parent?.Prefix : attr.Prefix) + (string.IsNullOrEmpty(attr?.EntryPoint) ? method : attr.EntryPoint)); }