Changes

Jump to navigation Jump to search
→‎Net fields: + NetLongDictionary
Line 29: Line 29:  
| A list of <tt>T</tt> values. This implements the standard interfaces like [https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 <tt>IEnumerable&lt;T&gt;</tt>] and [https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist-1 <tt>IList&lt;T&gt;</tt>], so you can iterate it directly like <code>foreach (T value in field)</code>.
 
| A list of <tt>T</tt> values. This implements the standard interfaces like [https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1 <tt>IEnumerable&lt;T&gt;</tt>] and [https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ilist-1 <tt>IList&lt;T&gt;</tt>], so you can iterate it directly like <code>foreach (T value in field)</code>.
 
|-
 
|-
| <tt>NetPointDictionary&lt;TValue, TNetValue&gt;</tt>
+
| <tt>NetLongDictionary&lt;TValue, TNetValue&gt;</tt><br /><tt>NetPointDictionary&lt;TValue, TNetValue&gt;</tt><br /><tt>NetVector2Dictionary&lt;TValue, TNetValue&gt;</tt>
| Maps <tt>Point</tt> keys to instances of <tt>TValue</tt> (the underlying value type) and <tt>TNetValue</tt> (the synchronised net type). You can iterate key/value pairs like <code>foreach (KeyValuePair<Point, TValue> pair in field.Pairs)</code>.
+
| Maps <tt>Long</tt>, <tt>Point</tt>, or <tt>Vector2</tt> keys to instances of <tt>TValue</tt> (the underlying value type) and <tt>TNetValue</tt> (the synchronised net type). You can iterate key/value pairs like <code>foreach (KeyValuePair<Long, TValue> pair in field.Pairs)</code> (replacing <tt>Long</tt> with <tt>Point</tt> or <tt>Vector2</tt> if needed).
|-
  −
| <tt>NetVector2Dictionary&lt;TValue, TNetValue&gt;</tt>
  −
| Maps <tt>Vector2</tt> keys to instances of <tt>TValue</tt> (the underlying value type) and <tt>TNetValue</tt> (the synchronised net type). You can iterate key/value pairs like <code>foreach (KeyValuePair<Vector2, TValue> pair in field.Pairs)</code>.
   
|}
 
|}
  
translators
8,439

edits

Navigation menu