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 : class
Throws an ArgumentNullException if the given value is null, otherwise
return the value to the caller.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-28 UTC."],[[["`ProtoPreconditions` is a static class within the `Google.Protobuf` namespace, offering helper methods for exception handling when preconditions fail."],["The class is primarily intended for internal use and by generated code, although it can technically be used in application code."],["`ProtoPreconditions` inherits from the base `object` class, inheriting its standard methods, such as `Equals`, `GetHashCode`, and `ToString`."],["The class contains the `CheckNotNull\u003cT\u003e(T value, string name)` method, which verifies if a provided value is not null and throws an `ArgumentNullException` if it is, returning the value otherwise."],["There are multiple versions of `ProtoPreconditions`, with version 3.27.1 being the latest release."]]],[]]