csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 1 | using System;
|
| 2 | using System.Collections.Generic;
|
| 3 | using Google.ProtocolBuffers.Descriptors;
|
| 4 |
|
| 5 | //Disable CS3011: only CLS-compliant members can be abstract
|
| 6 | #pragma warning disable 3011
|
| 7 |
|
| 8 | namespace Google.ProtocolBuffers.Serialization
|
| 9 | {
|
| 10 | /// <summary>
|
| 11 | /// Provides a base-class that provides some basic functionality for handling type dispatching
|
| 12 | /// </summary>
|
| 13 | public abstract class AbstractReader : ICodedInputStream
|
| 14 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 15 | private const int DefaultMaxDepth = 64;
|
| 16 | private int _depth;
|
| 17 |
|
| 18 | /// <summary> Constructs a new reader </summary>
|
| 19 | protected AbstractReader() { MaxDepth = DefaultMaxDepth; }
|
| 20 | /// <summary> Constructs a new child reader </summary>
|
| 21 | protected AbstractReader(AbstractReader copyFrom)
|
| 22 | {
|
| 23 | _depth = copyFrom._depth + 1;
|
| 24 | MaxDepth = copyFrom.MaxDepth;
|
| 25 | }
|
| 26 |
|
| 27 | /// <summary> Gets or sets the maximum recursion depth allowed </summary>
|
| 28 | public int MaxDepth { get; set; }
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 29 |
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 30 | /// <summary>
|
| 31 | /// Merges the contents of stream into the provided message builder
|
| 32 | /// </summary>
|
| 33 | public TBuilder Merge<TBuilder>(TBuilder builder) where TBuilder : IBuilderLite
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 34 | {
|
| 35 | return Merge(builder, ExtensionRegistry.Empty);
|
| 36 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 37 |
|
| 38 | /// <summary>
|
| 39 | /// Merges the contents of stream into the provided message builder
|
| 40 | /// </summary>
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 41 | public abstract TBuilder Merge<TBuilder>(TBuilder builder, ExtensionRegistry registry)
|
| 42 | where TBuilder : IBuilderLite;
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 43 |
|
| 44 | /// <summary>
|
| 45 | /// Peeks at the next field in the input stream and returns what information is available.
|
| 46 | /// </summary>
|
| 47 | /// <remarks>
|
| 48 | /// This may be called multiple times without actually reading the field. Only after the field
|
| 49 | /// is either read, or skipped, should PeekNext return a different value.
|
| 50 | /// </remarks>
|
| 51 | protected abstract bool PeekNext(out string field);
|
| 52 |
|
| 53 | /// <summary>
|
| 54 | /// Causes the reader to skip past this field
|
| 55 | /// </summary>
|
| 56 | protected abstract void Skip();
|
| 57 |
|
| 58 | /// <summary>
|
| 59 | /// Returns true if it was able to read a Boolean from the input
|
| 60 | /// </summary>
|
| 61 | protected abstract bool Read(ref bool value);
|
| 62 |
|
| 63 | /// <summary>
|
| 64 | /// Returns true if it was able to read a Int32 from the input
|
| 65 | /// </summary>
|
| 66 | protected abstract bool Read(ref int value);
|
| 67 |
|
| 68 | /// <summary>
|
| 69 | /// Returns true if it was able to read a UInt32 from the input
|
| 70 | /// </summary>
|
| 71 | [CLSCompliant(false)]
|
| 72 | protected abstract bool Read(ref uint value);
|
| 73 |
|
| 74 | /// <summary>
|
| 75 | /// Returns true if it was able to read a Int64 from the input
|
| 76 | /// </summary>
|
| 77 | protected abstract bool Read(ref long value);
|
| 78 |
|
| 79 | /// <summary>
|
| 80 | /// Returns true if it was able to read a UInt64 from the input
|
| 81 | /// </summary>
|
| 82 | [CLSCompliant(false)]
|
| 83 | protected abstract bool Read(ref ulong value);
|
| 84 |
|
| 85 | /// <summary>
|
| 86 | /// Returns true if it was able to read a Single from the input
|
| 87 | /// </summary>
|
| 88 | protected abstract bool Read(ref float value);
|
| 89 |
|
| 90 | /// <summary>
|
| 91 | /// Returns true if it was able to read a Double from the input
|
| 92 | /// </summary>
|
| 93 | protected abstract bool Read(ref double value);
|
| 94 |
|
| 95 | /// <summary>
|
| 96 | /// Returns true if it was able to read a String from the input
|
| 97 | /// </summary>
|
| 98 | protected abstract bool Read(ref string value);
|
| 99 |
|
| 100 | /// <summary>
|
| 101 | /// Returns true if it was able to read a ByteString from the input
|
| 102 | /// </summary>
|
| 103 | protected abstract bool Read(ref ByteString value);
|
| 104 |
|
| 105 | /// <summary>
|
| 106 | /// returns true if it was able to read a single value into the value reference. The value
|
| 107 | /// stored may be of type System.String, System.Int32, or an IEnumLite from the IEnumLiteMap.
|
| 108 | /// </summary>
|
| 109 | protected abstract bool ReadEnum(ref object value);
|
| 110 |
|
| 111 | /// <summary>
|
| 112 | /// Merges the input stream into the provided IBuilderLite
|
| 113 | /// </summary>
|
| 114 | protected abstract bool ReadMessage(IBuilderLite builder, ExtensionRegistry registry);
|
csharptest | c2d2c1a | 2011-09-08 20:02:11 -0500 | [diff] [blame^] | 115 |
|
| 116 | /// <summary>
|
| 117 | /// Reads the root-message preamble specific to this formatter
|
| 118 | /// </summary>
|
| 119 | public abstract AbstractReader ReadStartMessage();
|
| 120 |
|
| 121 | /// <summary>
|
| 122 | /// Reads the root-message close specific to this formatter
|
| 123 | /// </summary>
|
| 124 | public abstract void ReadEndMessage();
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 125 |
|
| 126 | /// <summary>
|
| 127 | /// Merges the input stream into the provided IBuilderLite
|
| 128 | /// </summary>
|
| 129 | public virtual bool ReadGroup(IBuilderLite value, ExtensionRegistry registry)
|
| 130 | {
|
| 131 | return ReadMessage(value, registry);
|
| 132 | }
|
| 133 |
|
| 134 | /// <summary>
|
| 135 | /// Cursors through the array elements and stops at the end of the array
|
| 136 | /// </summary>
|
| 137 | protected virtual IEnumerable<string> ForeachArrayItem(string field)
|
| 138 | {
|
| 139 | string next = field;
|
| 140 | while (true)
|
| 141 | {
|
| 142 | yield return next;
|
| 143 |
|
| 144 | if (!PeekNext(out next) || next != field)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 145 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 146 | break;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 147 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 148 | }
|
| 149 | }
|
| 150 |
|
| 151 | /// <summary>
|
| 152 | /// Reads an array of T messages
|
| 153 | /// </summary>
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 154 | public virtual bool ReadMessageArray<T>(string field, ICollection<T> items, IMessageLite messageType,
|
| 155 | ExtensionRegistry registry)
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 156 | {
|
| 157 | bool success = false;
|
| 158 | foreach (string next in ForeachArrayItem(field))
|
| 159 | {
|
| 160 | IBuilderLite builder = messageType.WeakCreateBuilderForType();
|
| 161 | if (ReadMessage(builder, registry))
|
| 162 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 163 | items.Add((T) builder.WeakBuild());
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 164 | success |= true;
|
| 165 | }
|
| 166 | }
|
| 167 | return success;
|
| 168 | }
|
| 169 |
|
| 170 | /// <summary>
|
| 171 | /// Reads an array of T messages as a proto-buffer group
|
| 172 | /// </summary>
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 173 | public virtual bool ReadGroupArray<T>(string field, ICollection<T> items, IMessageLite messageType,
|
| 174 | ExtensionRegistry registry)
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 175 | {
|
| 176 | bool success = false;
|
| 177 | foreach (string next in ForeachArrayItem(field))
|
| 178 | {
|
| 179 | IBuilderLite builder = messageType.WeakCreateBuilderForType();
|
| 180 | if (ReadGroup(builder, registry))
|
| 181 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 182 | items.Add((T) builder.WeakBuild());
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 183 | success |= true;
|
| 184 | }
|
| 185 | }
|
| 186 | return success;
|
| 187 | }
|
| 188 |
|
| 189 | /// <summary>
|
| 190 | /// Reads an array of System.Enum type T and adds them to the collection
|
| 191 | /// </summary>
|
| 192 | public virtual bool ReadEnumArray(string field, ICollection<object> items)
|
| 193 | {
|
| 194 | bool success = false;
|
| 195 | foreach (string next in ForeachArrayItem(field))
|
| 196 | {
|
| 197 | object temp = null;
|
| 198 | if (ReadEnum(ref temp))
|
| 199 | {
|
| 200 | items.Add(temp);
|
| 201 | success |= true;
|
| 202 | }
|
| 203 | }
|
| 204 | return success;
|
| 205 | }
|
| 206 |
|
| 207 | /// <summary>
|
| 208 | /// Reads an array of T, where T is a primitive type defined by FieldType
|
| 209 | /// </summary>
|
| 210 | public virtual bool ReadArray<T>(FieldType type, string field, ICollection<T> items)
|
| 211 | {
|
| 212 | bool success = false;
|
| 213 | foreach (string next in ForeachArrayItem(field))
|
| 214 | {
|
| 215 | object temp = null;
|
| 216 | if (ReadField(type, ref temp))
|
| 217 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 218 | items.Add((T) temp);
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 219 | success |= true;
|
| 220 | }
|
| 221 | }
|
| 222 | return success;
|
| 223 | }
|
| 224 |
|
| 225 | /// <summary>
|
| 226 | /// returns true if it was able to read a single primitive value of FieldType into the value reference
|
| 227 | /// </summary>
|
| 228 | public virtual bool ReadField(FieldType type, ref object value)
|
| 229 | {
|
| 230 | switch (type)
|
| 231 | {
|
| 232 | case FieldType.Bool:
|
| 233 | {
|
| 234 | bool temp = false;
|
| 235 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 236 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 237 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 238 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 239 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 240 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 241 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 242 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 243 | break;
|
| 244 | }
|
| 245 | case FieldType.Int64:
|
| 246 | case FieldType.SInt64:
|
| 247 | case FieldType.SFixed64:
|
| 248 | {
|
| 249 | long temp = 0;
|
| 250 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 251 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 252 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 253 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 254 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 255 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 256 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 257 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 258 | break;
|
| 259 | }
|
| 260 | case FieldType.UInt64:
|
| 261 | case FieldType.Fixed64:
|
| 262 | {
|
| 263 | ulong temp = 0;
|
| 264 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 265 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 266 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 267 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 268 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 269 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 270 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 271 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 272 | break;
|
| 273 | }
|
| 274 | case FieldType.Int32:
|
| 275 | case FieldType.SInt32:
|
| 276 | case FieldType.SFixed32:
|
| 277 | {
|
| 278 | int temp = 0;
|
| 279 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 280 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 281 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 282 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 283 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 284 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 285 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 286 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 287 | break;
|
| 288 | }
|
| 289 | case FieldType.UInt32:
|
| 290 | case FieldType.Fixed32:
|
| 291 | {
|
| 292 | uint temp = 0;
|
| 293 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 294 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 295 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 296 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 297 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 298 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 299 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 300 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 301 | break;
|
| 302 | }
|
| 303 | case FieldType.Float:
|
| 304 | {
|
| 305 | float temp = float.NaN;
|
| 306 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 307 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 308 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 309 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 310 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 311 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 312 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 313 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 314 | break;
|
| 315 | }
|
| 316 | case FieldType.Double:
|
| 317 | {
|
| 318 | double temp = float.NaN;
|
| 319 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 320 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 321 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 322 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 323 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 324 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 325 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 326 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 327 | break;
|
| 328 | }
|
| 329 | case FieldType.String:
|
| 330 | {
|
| 331 | string temp = null;
|
| 332 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 333 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 334 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 335 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 336 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 337 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 338 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 339 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 340 | break;
|
| 341 | }
|
| 342 | case FieldType.Bytes:
|
| 343 | {
|
| 344 | ByteString temp = null;
|
| 345 | if (Read(ref temp))
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 346 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 347 | value = temp;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 348 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 349 | else
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 350 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 351 | return false;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 352 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 353 | break;
|
| 354 | }
|
| 355 | default:
|
| 356 | throw InvalidProtocolBufferException.InvalidTag();
|
| 357 | }
|
| 358 | return true;
|
| 359 | }
|
| 360 |
|
| 361 | #region ICodedInputStream Members
|
| 362 |
|
| 363 | bool ICodedInputStream.ReadTag(out uint fieldTag, out string fieldName)
|
| 364 | {
|
| 365 | fieldTag = 0;
|
| 366 | if (PeekNext(out fieldName))
|
| 367 | {
|
| 368 | return true;
|
| 369 | }
|
| 370 | return false;
|
| 371 | }
|
| 372 |
|
| 373 | bool ICodedInputStream.ReadDouble(ref double value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 374 | {
|
| 375 | return Read(ref value);
|
| 376 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 377 |
|
| 378 | bool ICodedInputStream.ReadFloat(ref float value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 379 | {
|
| 380 | return Read(ref value);
|
| 381 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 382 |
|
| 383 | bool ICodedInputStream.ReadUInt64(ref ulong value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 384 | {
|
| 385 | return Read(ref value);
|
| 386 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 387 |
|
| 388 | bool ICodedInputStream.ReadInt64(ref long value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 389 | {
|
| 390 | return Read(ref value);
|
| 391 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 392 |
|
| 393 | bool ICodedInputStream.ReadInt32(ref int value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 394 | {
|
| 395 | return Read(ref value);
|
| 396 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 397 |
|
| 398 | bool ICodedInputStream.ReadFixed64(ref ulong value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 399 | {
|
| 400 | return Read(ref value);
|
| 401 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 402 |
|
| 403 | bool ICodedInputStream.ReadFixed32(ref uint value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 404 | {
|
| 405 | return Read(ref value);
|
| 406 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 407 |
|
| 408 | bool ICodedInputStream.ReadBool(ref bool value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 409 | {
|
| 410 | return Read(ref value);
|
| 411 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 412 |
|
| 413 | bool ICodedInputStream.ReadString(ref string value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 414 | {
|
| 415 | return Read(ref value);
|
| 416 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 417 |
|
| 418 | void ICodedInputStream.ReadGroup(int fieldNumber, IBuilderLite builder, ExtensionRegistry extensionRegistry)
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 419 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 420 | if (_depth++ > MaxDepth)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 421 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 422 | throw new RecursionLimitExceededException();
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 423 | }
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 424 | ReadGroup(builder, extensionRegistry);
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 425 | _depth--;
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 426 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 427 |
|
| 428 | void ICodedInputStream.ReadUnknownGroup(int fieldNumber, IBuilderLite builder)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 429 | {
|
| 430 | throw new NotSupportedException();
|
| 431 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 432 |
|
| 433 | void ICodedInputStream.ReadMessage(IBuilderLite builder, ExtensionRegistry extensionRegistry)
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 434 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 435 | if (_depth++ > MaxDepth)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 436 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 437 | throw new RecursionLimitExceededException();
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 438 | }
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 439 | ReadMessage(builder, extensionRegistry);
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 440 | _depth--;
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 441 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 442 |
|
| 443 | bool ICodedInputStream.ReadBytes(ref ByteString value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 444 | {
|
| 445 | return Read(ref value);
|
| 446 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 447 |
|
| 448 | bool ICodedInputStream.ReadUInt32(ref uint value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 449 | {
|
| 450 | return Read(ref value);
|
| 451 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 452 |
|
| 453 | bool ICodedInputStream.ReadEnum(ref IEnumLite value, out object unknown, IEnumLiteMap mapping)
|
| 454 | {
|
| 455 | value = null;
|
| 456 | unknown = null;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 457 | if (ReadEnum(ref unknown))
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 458 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 459 | if (unknown is int)
|
| 460 | {
|
| 461 | value = mapping.FindValueByNumber((int) unknown);
|
| 462 | }
|
| 463 | else if (unknown is string)
|
| 464 | {
|
| 465 | value = mapping.FindValueByName((string) unknown);
|
| 466 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 467 | return value != null;
|
| 468 | }
|
| 469 | return false;
|
| 470 | }
|
| 471 |
|
| 472 | bool ICodedInputStream.ReadEnum<T>(ref T value, out object rawValue)
|
| 473 | {
|
| 474 | rawValue = null;
|
| 475 | if (ReadEnum(ref rawValue))
|
| 476 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 477 | if (Enum.IsDefined(typeof (T), rawValue))
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 478 | {
|
| 479 | if (rawValue is int)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 480 | {
|
| 481 | value = (T) rawValue;
|
| 482 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 483 | else if (rawValue is string)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 484 | {
|
| 485 | value = (T) Enum.Parse(typeof (T), (string) rawValue, false);
|
| 486 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 487 | else
|
| 488 | {
|
| 489 | value = default(T);
|
| 490 | return false;
|
| 491 | }
|
| 492 | return true;
|
| 493 | }
|
| 494 | }
|
| 495 | return false;
|
| 496 | }
|
| 497 |
|
| 498 | bool ICodedInputStream.ReadSFixed32(ref int value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 499 | {
|
| 500 | return Read(ref value);
|
| 501 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 502 |
|
| 503 | bool ICodedInputStream.ReadSFixed64(ref long value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 504 | {
|
| 505 | return Read(ref value);
|
| 506 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 507 |
|
| 508 | bool ICodedInputStream.ReadSInt32(ref int value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 509 | {
|
| 510 | return Read(ref value);
|
| 511 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 512 |
|
| 513 | bool ICodedInputStream.ReadSInt64(ref long value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 514 | {
|
| 515 | return Read(ref value);
|
| 516 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 517 |
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 518 | void ICodedInputStream.ReadPrimitiveArray(FieldType fieldType, uint fieldTag, string fieldName,
|
| 519 | ICollection<object> list)
|
| 520 | {
|
| 521 | ReadArray(fieldType, fieldName, list);
|
| 522 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 523 |
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 524 | void ICodedInputStream.ReadEnumArray(uint fieldTag, string fieldName, ICollection<IEnumLite> list,
|
| 525 | out ICollection<object> unknown, IEnumLiteMap mapping)
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 526 | {
|
| 527 | unknown = null;
|
| 528 | List<object> array = new List<object>();
|
| 529 | if (ReadEnumArray(fieldName, array))
|
| 530 | {
|
| 531 | foreach (object rawValue in array)
|
| 532 | {
|
| 533 | IEnumLite item = null;
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 534 | if (rawValue is int)
|
| 535 | {
|
| 536 | item = mapping.FindValueByNumber((int) rawValue);
|
| 537 | }
|
| 538 | else if (rawValue is string)
|
| 539 | {
|
| 540 | item = mapping.FindValueByName((string) rawValue);
|
| 541 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 542 |
|
| 543 | if (item != null)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 544 | {
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 545 | list.Add(item);
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 546 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 547 | else
|
| 548 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 549 | if (unknown == null)
|
| 550 | {
|
| 551 | unknown = new List<object>();
|
| 552 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 553 | unknown.Add(rawValue);
|
| 554 | }
|
| 555 | }
|
| 556 | }
|
| 557 | }
|
| 558 |
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 559 | void ICodedInputStream.ReadEnumArray<T>(uint fieldTag, string fieldName, ICollection<T> list,
|
| 560 | out ICollection<object> unknown)
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 561 | {
|
| 562 | unknown = null;
|
| 563 | List<object> array = new List<object>();
|
| 564 | if (ReadEnumArray(fieldName, array))
|
| 565 | {
|
| 566 | foreach (object rawValue in array)
|
| 567 | {
|
| 568 | if (rawValue is int)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 569 | {
|
| 570 | list.Add((T) rawValue);
|
| 571 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 572 | else if (rawValue is string)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 573 | {
|
| 574 | list.Add((T) Enum.Parse(typeof (T), (string) rawValue, false));
|
| 575 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 576 | else
|
| 577 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 578 | if (unknown == null)
|
| 579 | {
|
| 580 | unknown = new List<object>();
|
| 581 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 582 | unknown.Add(rawValue);
|
| 583 | }
|
| 584 | }
|
| 585 | }
|
| 586 | }
|
| 587 |
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 588 | void ICodedInputStream.ReadMessageArray<T>(uint fieldTag, string fieldName, ICollection<T> list, T messageType,
|
| 589 | ExtensionRegistry registry)
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 590 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 591 | if (_depth++ > MaxDepth)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 592 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 593 | throw new RecursionLimitExceededException();
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 594 | }
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 595 | ReadMessageArray(fieldName, list, messageType, registry);
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 596 | _depth--;
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 597 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 598 |
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 599 | void ICodedInputStream.ReadGroupArray<T>(uint fieldTag, string fieldName, ICollection<T> list, T messageType,
|
| 600 | ExtensionRegistry registry)
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 601 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 602 | if (_depth++ > MaxDepth)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 603 | {
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 604 | throw new RecursionLimitExceededException();
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 605 | }
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 606 | ReadGroupArray(fieldName, list, messageType, registry);
|
csharptest | 0f3540e | 2011-08-05 20:40:14 -0500 | [diff] [blame] | 607 | _depth--;
|
csharptest | 3b70dd7 | 2011-06-11 12:22:17 -0500 | [diff] [blame] | 608 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 609 |
|
| 610 | bool ICodedInputStream.ReadPrimitiveField(FieldType fieldType, ref object value)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 611 | {
|
| 612 | return ReadField(fieldType, ref value);
|
| 613 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 614 |
|
| 615 | bool ICodedInputStream.IsAtEnd
|
| 616 | {
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 617 | get
|
| 618 | {
|
| 619 | string next;
|
| 620 | return PeekNext(out next) == false;
|
| 621 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 622 | }
|
| 623 |
|
| 624 | bool ICodedInputStream.SkipField()
|
| 625 | {
|
| 626 | Skip();
|
| 627 | return true;
|
| 628 | }
|
| 629 |
|
| 630 | void ICodedInputStream.ReadStringArray(uint fieldTag, string fieldName, ICollection<string> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 631 | {
|
| 632 | ReadArray(FieldType.String, fieldName, list);
|
| 633 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 634 |
|
| 635 | void ICodedInputStream.ReadBytesArray(uint fieldTag, string fieldName, ICollection<ByteString> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 636 | {
|
| 637 | ReadArray(FieldType.Bytes, fieldName, list);
|
| 638 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 639 |
|
| 640 | void ICodedInputStream.ReadBoolArray(uint fieldTag, string fieldName, ICollection<bool> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 641 | {
|
| 642 | ReadArray(FieldType.Bool, fieldName, list);
|
| 643 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 644 |
|
| 645 | void ICodedInputStream.ReadInt32Array(uint fieldTag, string fieldName, ICollection<int> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 646 | {
|
| 647 | ReadArray(FieldType.Int32, fieldName, list);
|
| 648 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 649 |
|
| 650 | void ICodedInputStream.ReadSInt32Array(uint fieldTag, string fieldName, ICollection<int> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 651 | {
|
| 652 | ReadArray(FieldType.SInt32, fieldName, list);
|
| 653 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 654 |
|
| 655 | void ICodedInputStream.ReadUInt32Array(uint fieldTag, string fieldName, ICollection<uint> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 656 | {
|
| 657 | ReadArray(FieldType.UInt32, fieldName, list);
|
| 658 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 659 |
|
| 660 | void ICodedInputStream.ReadFixed32Array(uint fieldTag, string fieldName, ICollection<uint> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 661 | {
|
| 662 | ReadArray(FieldType.Fixed32, fieldName, list);
|
| 663 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 664 |
|
| 665 | void ICodedInputStream.ReadSFixed32Array(uint fieldTag, string fieldName, ICollection<int> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 666 | {
|
| 667 | ReadArray(FieldType.SFixed32, fieldName, list);
|
| 668 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 669 |
|
| 670 | void ICodedInputStream.ReadInt64Array(uint fieldTag, string fieldName, ICollection<long> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 671 | {
|
| 672 | ReadArray(FieldType.Int64, fieldName, list);
|
| 673 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 674 |
|
| 675 | void ICodedInputStream.ReadSInt64Array(uint fieldTag, string fieldName, ICollection<long> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 676 | {
|
| 677 | ReadArray(FieldType.SInt64, fieldName, list);
|
| 678 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 679 |
|
| 680 | void ICodedInputStream.ReadUInt64Array(uint fieldTag, string fieldName, ICollection<ulong> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 681 | {
|
| 682 | ReadArray(FieldType.UInt64, fieldName, list);
|
| 683 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 684 |
|
| 685 | void ICodedInputStream.ReadFixed64Array(uint fieldTag, string fieldName, ICollection<ulong> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 686 | {
|
| 687 | ReadArray(FieldType.Fixed64, fieldName, list);
|
| 688 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 689 |
|
| 690 | void ICodedInputStream.ReadSFixed64Array(uint fieldTag, string fieldName, ICollection<long> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 691 | {
|
| 692 | ReadArray(FieldType.SFixed64, fieldName, list);
|
| 693 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 694 |
|
| 695 | void ICodedInputStream.ReadDoubleArray(uint fieldTag, string fieldName, ICollection<double> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 696 | {
|
| 697 | ReadArray(FieldType.Double, fieldName, list);
|
| 698 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 699 |
|
| 700 | void ICodedInputStream.ReadFloatArray(uint fieldTag, string fieldName, ICollection<float> list)
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 701 | {
|
| 702 | ReadArray(FieldType.Float, fieldName, list);
|
| 703 | }
|
csharptest | 2b86884 | 2011-06-10 14:41:47 -0500 | [diff] [blame] | 704 |
|
| 705 | #endregion
|
| 706 | }
|
csharptest | 74c5e0c | 2011-07-14 13:06:22 -0500 | [diff] [blame] | 707 | } |