diff options
author | Jose <jose@zeroc.com> | 2016-12-29 21:01:16 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-12-29 21:01:16 +0100 |
commit | 54941beff80f3ebab2b15af4609c7ec8bc0d941e (patch) | |
tree | bdd4eb6573f5c4673c2129cc2eb616b1188fc543 /csharp/src/Ice/OutputStream.cs | |
parent | JavaScript Ice.Long fixes and improvements (diff) | |
download | ice-54941beff80f3ebab2b15af4609c7ec8bc0d941e.tar.bz2 ice-54941beff80f3ebab2b15af4609c7ec8bc0d941e.tar.xz ice-54941beff80f3ebab2b15af4609c7ec8bc0d941e.zip |
CSharp cleanup and fixes:
- Add EditorBrowsable(EditorBrowsableState.Never) to
hidde internal public methods from Intellisense,
see ICE-7448.
- Remove Base64 and replace it with .NET System.Convert
see ICE-7477
- Remove SysLogger as that was only used by Mono
- Simplify ThreadPriority setting
- Remove using statements that are not required
- Normalize string, char, object spell, preferred over
String, Char, Object
- Shorthen qualifier names avoiding redundant scopes.
Diffstat (limited to 'csharp/src/Ice/OutputStream.cs')
-rw-r--r-- | csharp/src/Ice/OutputStream.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/csharp/src/Ice/OutputStream.cs b/csharp/src/Ice/OutputStream.cs index 2dc2521c443..9b4130fe52a 100644 --- a/csharp/src/Ice/OutputStream.cs +++ b/csharp/src/Ice/OutputStream.cs @@ -455,7 +455,7 @@ namespace Ice if(v > 254) { expand(5); - _buf.b.put((byte)255); + _buf.b.put(255); _buf.b.putInt(v); } else @@ -1903,7 +1903,7 @@ namespace Ice /// </summary> /// <param name="tag">The optional tag.</param> /// <param name="v">The optional string sequence to write to the stream.</param> - public void writeStringSeq(int tag, Optional<String[]> v) + public void writeStringSeq(int tag, Optional<string[]> v) { if(v.HasValue) { @@ -2490,7 +2490,7 @@ namespace Ice _current.sliceFlagsPos = _stream.pos(); - _current.sliceFlags = (byte)0; + _current.sliceFlags = 0; if(_encaps.format == FormatType.SlicedFormat) { // @@ -2503,7 +2503,7 @@ namespace Ice _current.sliceFlags |= Protocol.FLAG_IS_LAST_SLICE; // This is the last slice. } - _stream.writeByte((byte)0); // Placeholder for the slice flags + _stream.writeByte(0); // Placeholder for the slice flags // // For instance slices, encode the flag and the type ID either as a @@ -2562,7 +2562,7 @@ namespace Ice // if((_current.sliceFlags & Protocol.FLAG_HAS_OPTIONAL_MEMBERS) != 0) { - _stream.writeByte((byte)Protocol.OPTIONAL_END_MARKER); + _stream.writeByte(Protocol.OPTIONAL_END_MARKER); } // @@ -2712,7 +2712,7 @@ namespace Ice previous.next = this; } this.previous = previous; - this.next = null; + next = null; } // Instance attributes |