Default Marshaling for Boolean Types

In general, marshaling base data types is straightforward. The Boolean data type is an exception. You can apply the MarshalAsAttribute attribute to marshal the Boolean type to any of the representations shown in the following table.