44         private class AnonymousClassEnumeration : System.Collections.IEnumerator
 
   46             public AnonymousClassEnumeration(
Document enclosingInstance)
 
   48                 InitBlock(enclosingInstance);
 
   50             private void  InitBlock(
Document enclosingInstance)
 
   52                 this.enclosingInstance = enclosingInstance;
 
   53                 iter = Enclosing_Instance.fields.GetEnumerator();
 
   55             private System.Object tempAuxObj;
 
   56             public bool MoveNext()
 
   58                 bool result = HasMoreElements();
 
   61                     tempAuxObj = NextElement();
 
   69             public System.Object Current
 
   82                     return enclosingInstance;
 
   86             internal System.Collections.IEnumerator iter;
 
   87             public bool HasMoreElements()
 
   89                 return iter.MoveNext();
 
   91             public System.Object NextElement()
 
   96         internal System.Collections.Generic.IList<
IFieldable> fields = 
new System.Collections.Generic.List<
IFieldable>();
 
   97         private float boost = 1.0f;
 
  119             get { 
return boost; }
 
  120             set { this.boost = value; }
 
  146         public void  RemoveField(System.String name)
 
  148             System.Collections.Generic.IEnumerator<
IFieldable> it = fields.GetEnumerator();
 
  149             while (it.MoveNext())
 
  152                 if (field.
Name.Equals(name))
 
  154                     fields.Remove(field);
 
  168         public void  RemoveFields(System.String name)
 
  170             for (
int i = fields.Count - 1; i >= 0; i--)
 
  173                 if (field.
Name.Equals(name))
 
  185         public Field GetField(System.String name)
 
  187             return (
Field) GetFieldable(name);
 
  199                 if (field.
Name.Equals(name))
 
  210         public System.String Get(System.String name)
 
  225         public System.Collections.Generic.IList<
IFieldable> GetFields()
 
  230         private static readonly 
Field[] NO_FIELDS = 
new Field[0];
 
  242         public Field[] GetFields(System.String name)
 
  244             var result = 
new System.Collections.Generic.List<
Field>();
 
  247                 if (field.
Name.Equals(name))
 
  249                     result.Add((
Field)field);
 
  253             if (result.Count == 0)
 
  256             return result.ToArray();
 
  273             var result = 
new System.Collections.Generic.List<
IFieldable>();
 
  276                 if (field.
Name.Equals(name))
 
  282             if (result.Count == 0)
 
  283                 return NO_FIELDABLES;
 
  285             return result.ToArray();
 
  289         private static readonly System.String[] NO_STRINGS = 
new System.String[0];
 
  299         public System.String[] GetValues(System.String name)
 
  301             var result = 
new System.Collections.Generic.List<
string>();
 
  308             if (result.Count == 0)
 
  311             return result.ToArray();
 
  314         private static readonly byte[][] NO_BYTES = 
new byte[0][];
 
  326         public byte[][] GetBinaryValues(System.String name)
 
  328             var result = 
new System.Collections.Generic.List<byte[]>();
 
  335             if (result.Count == 0)
 
  338             return result.ToArray();
 
  351         public byte[] GetBinaryValue(System.String name)
 
  362         public override System.String ToString()
 
  364             System.Text.StringBuilder buffer = 
new System.Text.StringBuilder();
 
  365             buffer.Append(
"Document<");
 
  366             for (
int i = 0; i < fields.Count; i++)
 
  369                 buffer.Append(field.ToString());
 
  370                 if (i != fields.Count - 1)
 
  374             return buffer.ToString();
 
  377         public System.Collections.Generic.IList<
IFieldable> fields_ForNUnit
 
  379             get { 
return fields; }