src/Shared/EntityFramework/Core/Metadata/Edm/CollectionType.cs
// <summary>
// Override EdmEquals to support value comparison of TypeUsage property
// </summary>
Override EdmEquals to support value comparison of TypeUsage property
Override EdmEquals to support value comparison of TypeUsage property
internal override bool EdmEquals(MetadataItem item)
        {
            if (ReferenceEquals(this, item))
            {
                return true;
            }
            if (null == item
                || BuiltInTypeKind.CollectionType != item.BuiltInTypeKind)
            {
                return false;
            }
            var other = (CollectionType)item;
            return TypeUsage.EdmEquals(other.TypeUsage);
        }
internal override bool EdmEquals ( MetadataItem item ) { if ( ReferenceEquals ( this , item ) ) { return true ; } if ( null == item || BuiltInTypeKind . CollectionType != item . BuiltInTypeKind ) { return false ; } var other = ( CollectionType ) item ; return TypeUsage . EdmEquals ( other . TypeUsage ) ; }
Override EdmEquals to support value comparison of TypeUsage property
Override EdmEquals to support value comparison of TypeUsage property
// short-circuit if this and other are reference equivalent // check type of item // compare type usage
item
MetadataItem