private ResourceType ValidateResourceType(ResourceType resourceType) { ResourceType type; if (resourceType == null) { return(null); } if (this.VisibleTypeCache.TryGetValue(resourceType.FullName, out type)) { return(type); } ValidateResourceTypeReadOnly(resourceType); this.VisibleTypeCache[resourceType.FullName] = resourceType; Version minimumProtocolVersion = resourceType.GetMinimumProtocolVersion(true); Version maxProtocolVersion = this.Configuration.DataServiceBehavior.MaxProtocolVersion.ToVersion(); WebUtil.CheckMaxProtocolVersion(minimumProtocolVersion, maxProtocolVersion); return(resourceType); }