LocalizationRequiredAttribute - класс

Indicates that marked element should be localized or not.

Definition

Пространство имён: Tessa.Properties.Resharper
Сборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
C#
[AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = false, Inherited = true)]
public sealed class LocalizationRequiredAttribute : Attribute
Inheritance
Object    Attribute    LocalizationRequiredAttribute

Пример

C#
[LocalizationRequiredAttribute(true)]
public class Foo
{
  private string str = "my string"; // Warning: Localizable string
}

Конструкторы

LocalizationRequiredAttribute Initializes a new instance of the LocalizationRequiredAttribute class with Required set to .
LocalizationRequiredAttribute(Boolean) Initializes a new instance of the LocalizationRequiredAttribute class.

Свойства

Required Gets a value indicating whether a element should be localized.

Значение поля

true if a element should be localized; otherwise, false.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Унаследован от Attribute)

Методы

Equals Returns whether the value of the given object is equal to the current LocalizationRequiredAttribute.
(Переопределяет AttributeEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
GetHashCode Returns the hash code for this instance.
(Переопределяет AttributeGetHashCode)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Унаследован от Attribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Унаследован от Attribute)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
ToStringReturns a string that represents the current object.
(Унаследован от Object)

Методы расширения

Get
(Определяется ComHelper)
InternalMarkerCanvas Возвращает маркер аннотации
(Определяется AnnotationInternalsAccessor)
Invoke
(Определяется ComHelper)
Set
(Определяется ComHelper)

См. также