How to create aliases in C #
Take this script
class CommandMessages { string IDS_SPEC1_COMPONENT1_MODULE1_STRING1; }
say I create an object of this class
CommandMessages objCommandMessage = new CommandMessages();
I need to write a long string
objCommandMessage.IDS_SPEC1_COMPONENT1_MODULE1_STRING1
every time I access a variable, itβs a pain since I use this variable as a key for a dictionary.
Dict[objCommandMessage.IDS_SPEC1_COMPONENT1_MODULE1_STRING1]
so I would have to do something like this
Dict[str1]
where str1 is an alias for objCommandMessage.IDS_SPEC1_COMPONENT1_MODULE1_STRING1, How do I do this?
source share