Click or drag to resize
LocalizationRequiredAttribute Class
Indicates that marked element should be localized or not.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Slash.Diagnostics.ReSharper.AnnotationsLocalizationRequiredAttribute

Namespace: Slash.Diagnostics.ReSharper.Annotations
Assembly: Slash.Diagnostics (in Slash.Diagnostics.dll) Version: 1.0.6018.40181
Syntax
public sealed class LocalizationRequiredAttribute : Attribute

The LocalizationRequiredAttribute type exposes the following members.

Constructors
  NameDescription
Public methodLocalizationRequiredAttribute
Initializes a new instance of the LocalizationRequiredAttribute class with Required set to .
Public methodLocalizationRequiredAttribute(Boolean)
Initializes a new instance of the LocalizationRequiredAttribute class.
Top
Properties
  NameDescription
Public propertyRequired
Gets a value indicating whether a element should be localized.

Field Value

Type: 
true if a element should be localized; otherwise, false.
Top
Methods
  NameDescription
Public methodEquals
Returns whether the value of the given object is equal to the current LocalizationRequiredAttribute.
(Overrides AttributeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides AttributeGetHashCode.)
Top
Examples
[LocalizationRequiredAttribute(true)]
public class Foo
{
  private string str = "my string"; // Warning: Localizable string
}
See Also