Files
spark/src/DataStreamSuite/DataStreamCore/BlueData/SchemaVisibility.cs
T
2023-09-04 16:25:40 -04:00

28 lines
726 B
C#

using System;
namespace BCG.Utilities.General
{
/// <summary>
/// Properties or public fields of a type can be mapped by this attribute, governing
/// their visiblity in the schema that can be constructed out of the object
/// </summary>
public class SchemaVisibility : Attribute
{
private bool myVisible = true;
/// <summary>
/// Tagging visbible as true, results in the property/field to
/// map to itself in the schema. This has the same result as
/// not tagging a field/property
/// </summary>
/// <param name="visible"></param>
public SchemaVisibility (bool visible)
{
myVisible = visible;
}
public bool visible{get{return myVisible;}}
}
}