﻿// Decompiled with JetBrains decompiler
// Type: System.Xml.Linq.ComponentModel.XTypeDescriptionProvider`1
// Assembly: System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: D3650A80-743D-4EFB-8926-AE790E9DB30F
// Assembly location: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll

using System;
using System.ComponentModel;

namespace System.Xml.Linq.ComponentModel
{
  internal class XTypeDescriptionProvider<T> : TypeDescriptionProvider
  {
    public XTypeDescriptionProvider()
      : base(TypeDescriptor.GetProvider(typeof (T)))
    {
    }

    public override ICustomTypeDescriptor GetTypeDescriptor(Type type, object instance)
    {
      return (ICustomTypeDescriptor) new XTypeDescriptor<T>(base.GetTypeDescriptor(type, instance));
    }
  }
}
