/// <summary>
 /// Initializes a new instance of the <see cref="StringLengthAttribute"/> class.
 /// </summary>
 public StringLengthAttribute(StringResourceKey resourceKey, int maximumLength)
     : base(maximumLength)
 {
     ResourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RegularExpressionAttribute"/> class.
 /// </summary>
 public RegularExpressionAttribute(StringResourceKey resourceKey, string pattern)
     : base(pattern)
 {
     ResourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequiredAttribute"/> class.
 /// </summary>
 public RequiredAttribute(StringResourceKey resourceKey)
     : base()
 {
     ResourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RangeAttribute"/> class.
 /// </summary>
 public RangeAttribute(StringResourceKey resourceKey, double minimum, double maximum)
     : base(minimum, maximum)
 {
     ResourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RangeAttribute"/> class.
 /// </summary>
 public RangeAttribute(StringResourceKey resourceKey, Type type, string minimum, string maximum)
     : base(type, minimum, maximum)
 {
     ResourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataTypeAttribute"/> class.
 /// </summary>
 public DataTypeAttribute(StringResourceKey resourceKey, System.ComponentModel.DataAnnotations.DataType dataType)
     : base(dataType)
 {
     ResourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataTypeAttribute"/> class.
 /// </summary>
 public DataTypeAttribute(StringResourceKey resourceKey, string customDataType)
     : base(customDataType)
 {
     ResourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalizedCategoryAttribute"/> class.
 /// </summary>
 /// <param name="resourceKey">The resource key of the associated resource.</param>
 public LocalizedCategoryAttribute(StringResourceKey resourceKey)
     : base(resourceKey.ToString())
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalizedTextAttribute"/> class.
 /// </summary>
 /// <param name="key">Any user defined key to specify the usage of this text.</param>
 /// <param name="resourceKey">The resource key of the associated resource.</param>
 public LocalizedTextAttribute(object key, StringResourceKey resourceKey)
     : base(key)
 {
     _resourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalizedDisplayNameAttribute"/> class.
 /// </summary>
 /// <param name="resourceKey">The resource key of the associated resource.</param>
 public LocalizedDisplayNameAttribute(StringResourceKey resourceKey)
 {
     _resourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalizedDescriptionAttribute"/> class.
 /// </summary>
 /// <param name="resourceKey">The resource key of the associated resource.</param>
 public LocalizedDescriptionAttribute(StringResourceKey resourceKey)
 {
     _resourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalizedTextAttribute"/> class.
 /// </summary>
 /// <param name="key">Any user defined key to specify the usage of this text.</param>
 /// <param name="resourceKey">The resource key of the associated resource.</param>
 public LocalizedTextAttribute(object key, StringResourceKey resourceKey)
     : base(key)
 {
     _resourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalizedDisplayNameAttribute"/> class.
 /// </summary>
 /// <param name="resourceKey">The resource key of the associated resource.</param>
 public LocalizedDisplayNameAttribute(StringResourceKey resourceKey)
 {
     _resourceKey = resourceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalizedDescriptionAttribute"/> class.
 /// </summary>
 /// <param name="resourceKey">The resource key of the associated resource.</param>
 public LocalizedDescriptionAttribute(StringResourceKey resourceKey)
 {
     _resourceKey = resourceKey;
 }