コード例 #1
0
 /// <summary>
 /// Provides the schema to use by default when no other matches are found.
 /// </summary>
 /// <param name="typeMapper">The default schema to use.</param>
 public void WithDefault(IDynamicFixedLengthTypeMapper typeMapper)
 {
     defaultMatcher = typeMapper == null ? nonMatcher : new TypeMapperMatcher
     {
         TypeMapper = typeMapper,
         Predicate  = o => true
     };
 }
コード例 #2
0
 /// <summary>
 /// Provides the schema to use by default when no other matches are found.
 /// </summary>
 /// <param name="typeMapper">The default schema to use.</param>
 public void WithDefault(IDynamicSeparatedValueTypeMapper typeMapper)
 {
     this.defaultMatcher = typeMapper == null ? nonMatcher : new TypeMapperMatcher()
     {
         TypeMapper = typeMapper,
         Predicate  = (o) => true
     };
 }