Online Help - Region 1: [CORE HL7 API Basic] |
If you have been a software developer for any length of time you will be aware of the .Tag property you will find on many, many different types of programming objects, from native objects to COM controls, to Windows Form controls, etc. The purpose of the .Tag property has always been to allow the programmer (you) the ability to add some custom property to an object which you could then reference later. It could be a numeric index to an internal list, a string Key value, or anything really, thus the "custom" use. In the "olden days" the .Tag property of an object was usually a simple String data type. In later years this has changed and now the .Tag property is typically a generic Object data type so that the programmer can assign almost anything to the .Tag and then retrieve it when needed through typecasting and conversion calls.
We have always loved the idea having .Tag property on objects. We just didn't like the idea of only having ONE value. Granted, if .Tag is a generic object it could be used for anything but what if we wanted to do more with it. Thus the CORETag object was born, it's really just a simple object with multiple different data types as Public properties. You will find that MOST of our classes will have a .Tag property and it will be of type CORETag.
Object: CORETag
To create yours object in C# it is simply:
CORETag MyTag = New CoreTag();
Public Properties:
Property Name |
Data Type |
DateTimeValue |
DateTime |
DoubleValue |
double |
IntValue |
integer |
LongValue |
long |
StringValue |
string |
Tag1 |
object |
Tag2 |
object |
Tag3 |
object |
Public Methods:
Method |
Return Value |
Copy() |
CORETag - Returns a copy of the CORETag object |