/// <summary> /// Register our DataControllerTypeDescriptionProvider for the specified Type. This provider is responsible for surfacing the /// custom TDs returned by metadata providers. /// </summary> /// <param name="type">The Type that we should register for.</param> /// <param name="metadataProvider">The metadata provider.</param> private static void RegisterDataControllerTypeDescriptionProvider(Type type, Metadata.MetadataProvider metadataProvider) { var tdp = new Metadata.DataControllerTypeDescriptionProvider(type, metadataProvider); RegisterCustomTypeDescriptor(tdp, type); }