For details on how to format binaryAttribute, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.
The erload:System.Reflection.Emit.MethodBuilder.SetCustomAttribute method can interact with the MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes) method when the two methods are used in combination. See the Remarks section of the MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes) method for details.