diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-10-02 14:34:20 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-10-02 14:34:20 +0200 |
commit | e88a40ae265ee82073ef9238a0289e6e952557a8 (patch) | |
tree | 6f3d2dd7a64ae8c3f76f8de98408df18921e7f0c /src/csharp | |
parent | 8eb6daddd9312d000db4f7b33dd35a509adea2a2 (diff) |
add xmldoc comments
Diffstat (limited to 'src/csharp')
-rw-r--r-- | src/csharp/Grpc.Core/ChannelOptions.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/csharp/Grpc.Core/ChannelOptions.cs b/src/csharp/Grpc.Core/ChannelOptions.cs index 3ea05120c1..880f2bef5f 100644 --- a/src/csharp/Grpc.Core/ChannelOptions.cs +++ b/src/csharp/Grpc.Core/ChannelOptions.cs @@ -122,11 +122,17 @@ namespace Grpc.Core } } + /// <summary> + /// Determines whether the specified object is equal to the current object. + /// </summary> public override bool Equals(object obj) { return Equals(obj as ChannelOption); } + /// <summary> + /// Determines whether the specified object is equal to the current object. + /// </summary> public bool Equals(ChannelOption other) { return other != null && @@ -136,6 +142,9 @@ namespace Grpc.Core stringValue == other.stringValue; } + /// <summary> + /// A hash code for the current object. + /// </summary> public override int GetHashCode() { var hashCode = 1412678443; @@ -146,11 +155,17 @@ namespace Grpc.Core return hashCode; } + /// <summary> + /// Equality operator. + /// </summary> public static bool operator ==(ChannelOption option1, ChannelOption option2) { return EqualityComparer<ChannelOption>.Default.Equals(option1, option2); } + /// <summary> + /// Inequality operator. + /// </summary> public static bool operator !=(ChannelOption option1, ChannelOption option2) { return !(option1 == option2); |