TOP

ASN.1/C# Compiler Directives

Applies to: ASN.1/C# 4.5

Compiler directives, similar to compiler options, control the compiler output. Unlike compiler options, compiler directives can be added to the ASN.1 schema files or can be included in a separate directive file.

Index

The following table contains compiler directives listed by category. Note that a directive may belong to more than one category. For your convenience, we have included check boxes that, when selected, display a particular group of directives: basic, advanced, or deprecated.

Format

Compiler directives override compiler options. They are case-sensitive and have one of the following formats:

--<OSS.Directive [reference] [Operands]>--
--<ASN1.Directive [reference] [Operands]>--

reference can be either a module, a type or a field, a file, depending on the directive.

Directives appear as comments to compilers that do not support them.

Example

--<OSS.Nickname MyZoo.VeryRareSpeciesOfMonkey MyMonkey>--

NOTE: The order in which directives appear is meaningful. Directives (including directive files) must precede the ASN.1 modules they are applied to. If contradictory directives are specified, the last one takes precedence.


This documentation applies to the OSS® ASN.1 Tools for C# release 4.5 and later.

Copyright © 2017 OSS Nokalva, Inc. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means electronic, mechanical, photocopying, recording or otherwise, without the prior permission of OSS Nokalva, Inc.
Every distributed copy of the OSS® ASN.1 Tools for C# is associated with a specific license and related unique license number. That license determines, among other things, what functions of the OSS ASN.1 Tools for C# are available to you.