src/Shared/EntityFramework/Core/Objects/DataClasses/StructuralObject.cs
/// <summary>Verifies that a complex object is not null.</summary>
/// <returns>The complex object being validated.</returns>
/// <param name="complexObject">The complex object that is being validated.</param>
/// <param name="propertyName">The complex property on the parent object that is associated with  complexObject .</param>
/// <typeparam name="TComplex">The type of the complex object being verified.</typeparam>
Verifies that a complex object is not null.
Verifies that a complex object is not null .
protected internal static TComplex VerifyComplexObjectIsNotNull<TComplex>(TComplex complexObject, string propertyName)
            where TComplex : ComplexObject
        {
            if (complexObject == null)
            {
                EntityUtil.ThrowPropertyIsNotNullable(propertyName);
            }
            return complexObject;
        }
protected internal static TComplex VerifyComplexObjectIsNotNull < TComplex > ( TComplex complexObject , string propertyName ) where TComplex : ComplexObject { if ( complexObject == null ) { EntityUtil . ThrowPropertyIsNotNullable ( propertyName ) ; } return complexObject ; }
Verifies that a complex object is not null.
Verifies that a complex object is not null .
The complex object being validated.
The complex object being validated .
complexObject
TComplex
The complex object that is being validated.
The complex object that is being validated .
propertyName
string
The complex property on the parent object that is associated with  complexObject .
The complex property on the parent object that is associated with complexObject .
typeparam
The type of the complex object being verified.
The type of the complex object being verified .