Skip to content

Custom Attributes

eisclimber edited this page Feb 11, 2024 · 1 revision

Custom Attributes

static class and helper classes in ExPresSXR.Experimentation.DataGathering

Description

A set of static function and custom attributes that can be added for multi-column support for the DatGatherer.

Members

Static Methods

  • bool IsTypeExportable(Type type): Returns true when the type is exportable (primitives Type, Vector2, Vector3, Quaternion).
  • bool IsValidMemberInfo(MemberInfo info): Checks if a MemberInfo is valid, does not required arguments and returns an exportable type.
  • Type GetMemberValueType(MemberInfo info): Returns the return type of a MemberInfo.

Editor Properties

  • string GetReplacementHeader(MemberInfo memberInfo, char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR): Returns the header replacement of memberInfo if exist, separated by sep.
  • bool HasAttribute<T>(MemberInfo memberInfo) where T : Attribute: Checks if a MemberInfo is annotated with the given Attribute.
  • bool GetAttribute<T>(MemberInfo memberInfo) where T : Attribute: Retrieves an attribute from a MemberInfo if possible.
  • bool TryGetAttribute<T>(MemberInfo memberInfo, out T attribute) where T : Attribute: Returns the attribute as out-parameter and returns true if the attribute was found.

MultiColumnValueAttribute

Helper attribute to annotate multi Columns


HeaderReplacementAttribute

Helper attribute for header replacements with multi Columns. The header-fields can be provided as individual parameters for the annotation.

Public Methods

  • GetHeaders(char sep): Returns the headers separated by the given separator-character.

HeaderReplacementNoticeAttribute

Helper attribute for header replacement notifications with multi Columns.

Public Methods

  • GetHeaders(char sep): Returns the headers separated by the given separator-character.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally