12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #region Copyright notice and license
- #endregion
- using System;
- namespace Google.Protobuf
- {
-
-
-
-
-
-
-
-
- public static class ProtoPreconditions
- {
-
-
-
-
- public static T CheckNotNull<T>(T value, string name) where T : class
- {
- if (value == null)
- {
- throw new ArgumentNullException(name);
- }
- return value;
- }
-
-
-
-
-
-
-
-
-
-
- internal static T CheckNotNullUnconstrained<T>(T value, string name)
- {
- if (value == null)
- {
- throw new ArgumentNullException(name);
- }
- return value;
- }
- }
- }
|