EnumItemAttribute class

Namespace: CodeEffects.Rule.Attributes
Assembly: CodeEffects.Rule.dll

If applied to any member of an enumerator that is used by source object as a rule field, provides the DisplayName for that member.

Syntax

[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class EnumItemAttribute : System.Attribute,
	CodeEffects.Rule.Attributes.IDisplayableAttribute

Properties

  • DisplayName Type: System.String

    Gets or sets the display name for the enum member in the Rule Editor.

Example

using CodeEffects.Rule.Attributes;

public enum State
{
	Arizona,
	California,
	Florida,
	Georgia,
	[EnumItem("North Dakota")]
	NorthDakota,
	[EnumItem("South Carolina")]
	SouthCarolina,
	[ExcludeFromEvaluation]
	Unknown
}
Post your support requests on Stackoverflow.com. You can also post your comments and product feedback using the form at the bottom of this page.
Comments: 0
Name (optional):
Comment (URLs are allowed and must start with http:// or https://; all tags will be encoded):
Remaining character count: