iNTERFACEWARE Products Manual > Installing and Using Chameleon > Language API Documentation > C# .NET Support > Generating Stubcode into a User Defined Namespace |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Most C# development software houses have conventions that they like to follow with regard to the choice of namespace names for different C# modules. Chameleon makes it possible to carefully pick the namespace into which the generated stubcode is stored in. The mechanism is to pick a prefix like "companyname.HL7". Chameleon will generate the stubcode in the namespace com.companyname.HL7 under the subdirectory " .\companyname\HL7\ " below the directory of the message definition file. To determine the prefix of the stubcode Engine object, Chameleon takes the last set of letters after the previous "." as it's a prefix for engine class. For instance, in the above case you will get a class name like "HL7Engine", although we have a prefix "companyname.HL7". This keeps the name of the generated class short, and avoids conflicting with the use of the "." operator in C#. The following table gives some example prefixes and what to expect in each case:
|