Module System

Provides definitions related to the namespace System.

Import path

semmle.code.csharp.frameworks.System

Imports

csharp

The default C# QL library.

Predicates

getInvokedDisposeMethod

Gets the dispose method that will be invoked on a value x of type t when x.Dipsose() is called.

getInvokedEqualsMethod

Gets the equals method that will be invoked on a value x of type t when x.Equals(object) is called.

getSystemActionDelegateType

DEPRECATED. Gets the System.Action delegate type.

getSystemActionTDelegateType

DEPRECATED. Gets a System.Action<T1, ..., Tn> delegate type.

getSystemArrayClass

DEPRECATED. Gets the System.Array class.

getSystemBooleanStruct

DEPRECATED. Gets the System.Boolean structure.

getSystemConvertClass

DEPRECATED. Gets the System.Convert class.

getSystemDelegateClass

DEPRECATED. Gets the System.Delegate class.

getSystemDivideByZeroExceptionClass

DEPRECATED. Gets the System.DivideByZeroException class.

getSystemEnumClass

DEPRECATED. Gets the System.Enum class.

getSystemExceptionClass

DEPRECATED. Gets the System.Exception class.

getSystemFuncDelegateType

DEPRECATED. Gets a System.Func<T1, ..., Tn, TResult> delegate type.

getSystemIComparableInterface

DEPRECATED. Gets the System.IComparable interface.

getSystemIComparableTInterface

DEPRECATED. Gets the System.IComparable<T> interface.

getSystemIDisposableInterface

DEPRECATED. Gets the System.IDisposable interface.

getSystemIEquatableTInterface

DEPRECATED. Gets the System.IEquatable<T> interface.

getSystemIFormatProviderInterface

DEPRECATED. Gets the System.IFormatProvider interface.

getSystemInt32Struct

DEPRECATED. Gets the System.Int32 structure.

getSystemIntPtrType

DEPRECATED. Gets the System.IntPtr type.

getSystemInvalidCastExceptionClass

DEPRECATED. Gets the System.InvalidCastException class.

getSystemLazyClass

DEPRECATED. Gets the System.Lazy<T> class.

getSystemNamespace

DEPRECATED. Gets the System namespace.

getSystemNullReferenceExceptionClass

DEPRECATED. Gets the System.NullReferenceException class.

getSystemObjectClass

DEPRECATED. Gets the System.Object class.

getSystemOutOfMemoryExceptionClass

DEPRECATED. Gets the System.OutOfMemoryException class.

getSystemOverflowExceptionClass

DEPRECATED. Gets the System.OverflowException class.

getSystemPredicateDelegateType

DEPRECATED. Gets the System.Predicate<T> delegate type.

getSystemStringClass

DEPRECATED. Gets the System.String class.

getSystemTypeClass

DEPRECATED. Gets the System.Type class.

getSystemUriClass

DEPRECATED. Gets the System.Uri class.

getSystemValueTypeClass

DEPRECATED. Gets the System.ValueType class.

implementsDispose

Whether the type t defines a dispose method.

implementsEquals

Whether the type t defines an equals method.

Classes

DisposeBoolMethod

A method with the signature void Dispose(bool).

DisposeMethod

A method that implements void IDisposable.Dispose().

EqualsMethod

A method that overrides bool object.Equals(object).

GetHashCodeMethod

A method that overrides int object.GetHashCode().

IEquatableEqualsMethod

A method that implements bool IEquatable<T>.Equals(T).

SystemActionDelegateType

The System.Action delegate type.

SystemActionTDelegateType

The System.Action<T1, ..., Tn> delegate type.

SystemArrayClass

System.Array class.

SystemBooleanStruct

The System.Boolean structure.

SystemClass

A class in the System namespace.

SystemConvertClass

The System.Convert class.

SystemDelegateClass

System.Delegate class.

SystemDelegateType

A delegate type in the System namespace.

SystemDivideByZeroExceptionClass

The System.DivideByZeroException class.

SystemEnumClass

The System.Enum class.

SystemExceptionClass

The System.Exception class.

SystemFuncDelegateType

The System.Func<T1, ..., Tn, TResult> delegate type.

SystemGuid

System.Guid struct.

SystemIComparableInterface

The System.IComparable interface.

SystemIComparableTInterface

The System.IComparable<T> interface.

SystemIDisposableInterface

The System.IDisposable interface.

SystemIEquatableTInterface

The System.IEquatable<T> interface.

SystemIFormatProviderInterface

The System.IFormatProvider interface.

SystemInt32Struct

The System.Int32 structure.

SystemIntPtrType

The System.IntPtr type.

SystemInterface

An interface in the System namespace.

SystemInvalidCastExceptionClass

The System.InvalidCastException class.

SystemLazyClass

The System.Lazy<T> class.

SystemNamespace

The System namespace.

SystemNotImplementedExceptionClass

The System.NotImplementedException class.

SystemNullReferenceExceptionClass

The System.NullReferenceException class.

SystemObjectClass

The System.Object class.

SystemOutOfMemoryExceptionClass

The System.OutOfMemoryException class.

SystemOverflowExceptionClass

The System.OverflowException class.

SystemPredicateDelegateType

The System.Predicate<T> delegate type.

SystemStringClass

The System.String class.

SystemStruct

A struct in the System namespace.

SystemTypeClass

The System.Type class

SystemUnboundGenericClass

An unbound generic class in the System namespace.

SystemUnboundGenericDelegateType

An unbound generic delegate type in the System namespace.

SystemUnboundGenericInterface

An unbound generic interface in the System namespace.

SystemUriClass

The System.Uri class.

SystemValueTypeClass

The System.ValueType class.

ToStringMethod

A ToString() method.