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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["`ProtoPreconditions` is a static class containing helper methods for managing exceptions when preconditions are not met."],["This class is intended for internal use and by generated code, but is accessible for application code if necessary."],["`ProtoPreconditions` inherits from the `object` class and includes inherited members like `Equals`, `GetHashCode`, and `ToString`."],["The `CheckNotNull\u003cT\u003e(T value, string name)` method is a core functionality, throwing an `ArgumentNullException` if the given value is null."],["It's located in the `Google.Protobuf` namespace within the `Google.Protobuf.dll` assembly, and documentation is provided for version 3.23.0, with links to versions 3.27.1 and 3.15.8."]]],[]]