Show / Hide Table of Contents

Class NonOfficialAttribute

This class provides a custom attribute used to annotate fields of Business Objects, COMponents and enums that are NOT part of the official BO4E standard. Using this attribute allows us to keep track of our changes (and those we'll suggest to the BO4E consortium to adapt).

Inheritance
System.Object
NonOfficialAttribute
Namespace: BO4E.meta
Assembly: BO4Enet.dll
Syntax
public class NonOfficialAttribute : Attribute
Examples
public class SomeBusinessObject : BusinessObject
{
   ...
[NonOfficial(NonOfficial.REGULATORY_REQUIREMENT)]
public string foo; // this string is needed to express information that are required by law.
   ...
}

Constructors

| Improve this Doc View Source

NonOfficialAttribute(Object[])

Declaration
public NonOfficialAttribute(params object[] enums)
Parameters
Type Name Description
System.Object[] enums

Properties

| Improve this Doc View Source

Mapping

contains those NonOfficialCategories (NonOfficialCategory) annotated to the field.

Declaration
protected HashSet<Enum> Mapping { get; set; }
Property Value
Type Description
HashSet<Enum>

Methods

| Improve this Doc View Source

HasCategory(NonOfficialCategory)

test if a category is part of the attribute data

Declaration
public bool HasCategory(NonOfficialCategory noc)
Parameters
Type Name Description
NonOfficialCategory noc

a category

Returns
Type Description
System.Boolean

true if the attribute contains the category

Extension Methods

BusinessObjectExtensions.DeepClone<T>(T)
COMExtensions.DeepClone<T>(T)

See Also

NonOfficialCategory
  • Improve this Doc
  • View Source
Back to top Generated by DocFX