Пример #1
0
 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);
 }
Пример #2
0
        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);
        }