public static IBinaryMapping Build(this MappingConfiguration configuration) => new RealBinaryMapping(configuration);
static BinaryMapping() { DefautlEncoding = Encoding.UTF8; DefaultConfiguration = MappingConfiguration.DefaultConfiguration(DefautlEncoding); Default = new RealBinaryMapping(DefaultConfiguration); }
public static MappingConfiguration ForType <T>( this MappingConfiguration configuration, Func <MappingReadArgs, object> reader, Action <MappingWriteArgs> writer) => ForType(configuration, typeof(T), reader, writer);