Table of Contents

Class ClassTypeSettings

Namespace
CMS.Base
Assembly
CMS.Base.dll

Class type settings class.

public class ClassTypeSettings
Inheritance
object
ClassTypeSettings
Extension Methods

Constructors

ClassTypeSettings(string, bool, bool, bool)

Constructor.

public ClassTypeSettings(string baseClassNames = null, bool showClasses = true, bool showEnumerations = false, bool showInterfaces = false)

Parameters

baseClassNames string

Base class names (separated by semi-colon) to filter its child classes.

showClasses bool

Indicates if classes should be selected.

showEnumerations bool

Indicates if enumerations should be selected.

showInterfaces bool

Indicates if interfaces should be selected.

Properties

BaseClassNames

Gets or sets base class names, separated by semi-colon, to filter classes.

public string BaseClassNames { get; set; }

Property Value

string

BaseTypes

Gets list of current base types for class validation

public List<Type> BaseTypes { get; }

Property Value

List<Type>

CheckAutoCreation

Indicates whether automatic type creation by system should be checked.

public bool CheckAutoCreation { get; set; }

Property Value

bool

Remarks

Checks whether system is able to create type automatically

ShowClasses

Indicates if classes should be selected.

public bool ShowClasses { get; set; }

Property Value

bool

ShowEnumerations

Indicates if enumerations should be selected.

public bool ShowEnumerations { get; set; }

Property Value

bool

ShowInterfaces

Indicates if interfaces should be selected.

public bool ShowInterfaces { get; set; }

Property Value

bool

Methods

CheckInterfaces(Type)

Checks if selected class is child of given interface.

public bool CheckInterfaces(Type type)

Parameters

type Type

Type of selected class

Returns

bool

GetCacheKey(string)

Returns key to access cached data for given assembly name.

public string GetCacheKey(string assemblyName)

Parameters

assemblyName string

Assembly name

Returns

string