Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourcesDescriptionAttribute"/> class.
 /// </summary>
 /// <param name="resourceType">Type of the resource file.</param>
 /// <param name="resourceName">Name of the string resource property to be used as description.</param>
 /// <exception cref="InvalidOperationException">Thrown when the resource cannot be found
 /// or does not have the given resource name.</exception>
 public ResourcesDescriptionAttribute(Type resourceType, string resourceName) :
     base(ResourceHelper.GetResourceLookup(resourceType, resourceName))
 {
 }