コード例 #1
0
ファイル: ModelMapper.cs プロジェクト: vnmone/vvvv-sdk
 /// <summary>
 /// Registers mapping from TInterface to instance.
 /// The mapping is valid for this model object and child objects.
 /// </summary>
 public static void RegisterDefault <TInterface>(this ModelMapper mapper, TInterface instance)
 {
     mapper.RegisterDefault(typeof(TInterface), instance);
 }
コード例 #2
0
ファイル: ModelMapper.cs プロジェクト: vnmone/vvvv-sdk
 /// <summary>
 /// Registers mapping for TFor from TFrom to TTo.
 /// The mapping is only valid for TFor.
 /// </summary>
 public static void RegisterMapping <TFor, TFrom, TTo>(this ModelMapper mapper)
 {
     mapper.RegisterMapping(typeof(TFor), typeof(TFrom), typeof(TTo));
 }
コード例 #3
0
ファイル: ModelMapper.cs プロジェクト: vnmone/vvvv-sdk
        public ModelMapper(object model, ModelMapper parentMapper)

            : this(model, parentMapper.TypeMappings.Container, parentMapper.Registry)
        {
        }