public static class ProtoPreconditions : objectHelper methods for throwing exceptions when preconditions are not met.
Namespace
Google.ProtobufAssembly
Google.Protobuf.dll
Remarks
This class is used internally and by generated code; it is not particularly expected to be used from application code, although nothing prevents it from being used that way.
Methods
CheckNotNull<T>(T, String)
public static T CheckNotNull<T>(T value, string name)
where T : classThrows an ArgumentNullException if the given value is null, otherwise return the value to the caller.
| Parameters | |
|---|---|
| Name | Description |
value |
T |
name |
String |
| Returns | |
|---|---|
| Type | Description |
T |
|
| Type Parameter | |
|---|---|
| Name | Description |
T |
|