DataServiceProvider.DSPMetadata.TryResolveResourceType C# (CSharp) Method

TryResolveResourceType() public method

Returnes a resource type specified by its name.
The implementation of this method should be very fast as it will get called for many requests. It should also be fast for non-existing resource types to avoid possible DoS attacks on the service.
public TryResolveResourceType ( string name, System.Data.Services.Providers.ResourceType &resourceType ) : bool
name string The full name of the resource type (including its namespace).
resourceType System.Data.Services.Providers.ResourceType The resource type instance found.
return bool
        public bool TryResolveResourceType(string name, out ResourceType resourceType)
        {
            return this.resourceTypes.TryGetValue(name, out resourceType);
        }