UsingStatement Class

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


[Serializable]
UsingStatement = public class(Statement)

This Cirrus class wraps a using statement, using adds a try/finally and calls IDisposable.Dispose on the value passed. The Value passed here has to implement IDisposable. The name/type is the temporary variable introduced to store the value.

Namespace: Cirrus Statements


Members

Method
Description
constructor(aValue: Value; aBody: Statement; aName: String; aType: IType)Creates a new instance of this class
constructorCreates a new instance of this class


Properties

Property
Description
Body: StatementBody statement
Name: StringName of the optionally introduced local for this with
Type: ITypeType of the optionally introduced local
Value: ValueValue for this using statement, this will be disposed at the end of the statement


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox