コード例 #1
0
ファイル: ResolveContext.cs プロジェクト: ogoun/ObjectDiff
 public ResolveContext(ResolverMap resolversMap, Type type, DiffOptions options)
 {
     Options   = options;
     Resolvers = resolversMap;
     _path     = new Stack <string>();
     Type      = type;
 }
コード例 #2
0
ファイル: ResolveContext.cs プロジェクト: ogoun/ObjectDiff
 public ResolveContext(ResolveContext context, string memberPath, Type type)
 {
     Resolvers = context.Resolvers;
     Options   = context.Options;
     _path     = new Stack <string>(context._path.Reverse());
     _path.Push(memberPath);
     Type = type;
 }
コード例 #3
0
 public MapContext(ResolverMap resolversMap, DiffPart diff, Type type)
 {
     Resolvers = resolversMap;
     Path      = new Stack <string>();
     Type      = type;
     while (diff.Path.Count > 0)
     {
         Path.Push(diff.Path.Pop());
     }
 }
コード例 #4
0
 public MapContext(MapContext context, Type type)
 {
     Resolvers = context.Resolvers;
     Path      = context.Path;
     Type      = type;
 }