CX

Description

static class CodeX.CX

This is the bootstrap class for the Code-X system library.

The class itself contains some utility functions which are used by the Code-X workflow. The augmenting native code provides the basis for cross-platform / cross-language compatibility.

Public / Methods

Dispose


[Dispose]
public static method Dispose → (1)

disposable in : IDisposable own

The object or null.

Disposes the given object, if not null.

Dispose​All


[Dispose]
public static method DisposeAll → (1)
<T ref : IDisposable>

disposables in : T [ ] own

The objects to dispose.

Disposes all given objects and sets the corresponding array elements to null.

The variable that holds the given disposables in must be cleared to null after this method has returned in order to guarantee correct resource management.

Mine


[OwnerReturn] [Pure]
public static method Mine → (1)<T>

value in : T

The value without ownership semantic.

returns → T

The value in with ownership semantic. Will be null iff value in is null.

The calling code holds ownership on the given value in in a way that is not understandable to static code analysis.

See also

Owner

Thine


[Pure]
public static method Thine → (1)<T>

value in : T own

The value with ownership semantic.

returns → T

The value in without ownership semantic. Will be null iff value in is null.

The calling code holds ownership on the given value in in a way that is not understandable to static code analysis.

See also

Owner

Throws


[Pure]
public static method Throws → ()
<T : Exception>

The enclosing code block may throw an exception of the indicated type.

Use


[Pure]
public static method Use → (1)<T>

value in : T

The value to touch.

Semantically touches the given value without performing any actions on it, in order to silence compiler warnings related to unused symbols.

Obviously, this method should not be used in production code.