﻿// Decompiled with JetBrains decompiler
// Type: System.Xml.Linq.ResDescriptionAttribute
// 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
{
  [AttributeUsage(AttributeTargets.All)]
  internal sealed class ResDescriptionAttribute : DescriptionAttribute
  {
    private bool replaced;

    public override string Description
    {
      get
      {
        if (!this.replaced)
        {
          this.replaced = true;
          this.DescriptionValue = Res.GetString(base.Description);
        }
        return base.Description;
      }
    }

    public ResDescriptionAttribute(string description)
      : base(description)
    {
    }
  }
}
