CX

Description

static class CodeX.CX

Utility class for this namespace.

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.