/// <summary> /// Retrieves a signed 32-bit integer value for the specified option field, /// assuming a zigzag encoding. /// </summary> /// <param name="field">The field to fetch the value for.</param> /// <param name="value">The output variable to populate.</param> /// <returns><c>true</c> if a suitable value for the field was found; <c>false</c> otherwise.</returns> public bool TryGetSInt32(int field, out int value) { ulong?tmp = GetLastNumericValue(field); value = CodedInputStream.DecodeZigZag32((uint)tmp.GetValueOrDefault()); return(tmp != null); }