internal override TypeUsage GetTypeUsage() { if (this._typeUsage != null) { return(this._typeUsage); } if (this._typeSubElement != null) { CollectionType collectionType = new CollectionType(this._typeSubElement.GetTypeUsage()); collectionType.AddMetadataProperties(this.OtherContent); this._typeUsage = TypeUsage.Create((EdmType)collectionType); } return(this._typeUsage); }
internal override TypeUsage GetTypeUsage() { if (_typeUsage != null) { return(_typeUsage); } Debug.Assert(_typeSubElement != null, "For attributes typeusage should have been resolved"); if (_typeSubElement != null) { var collectionType = new CollectionType(_typeSubElement.GetTypeUsage()); collectionType.AddMetadataProperties(OtherContent); _typeUsage = TypeUsage.Create(collectionType); } return(_typeUsage); }