예제 #1
0
 /// <param name="refs">
 /// the complete set of references. This should have been computed
 /// by applying updates to the advertised refs already discovered.
 /// </param>
 public RefWriter(IDictionary <string, Ref> refs)
 {
     if (refs is RefMap)
     {
         this.refs = refs.Values;
     }
     else
     {
         this.refs = RefComparator.Sort(refs.Values);
     }
 }
예제 #2
0
 /// <param name="refs">
 /// the complete set of references. This should have been computed
 /// by applying updates to the advertised refs already discovered.
 /// </param>
 public RefWriter(ICollection <Ref> refs)
 {
     this.refs = RefComparator.Sort(refs);
 }