Joutsen Logging v0.5.0+22-gec3d058
Public Member Functions | Properties | List of all members
TypeScope Class Reference

A scope implementation that represents a type. More...

Public Member Functions

 TypeScope (Type type)
 create a new instance for a type. More...
 
virtual string ToString (string format, IFormatProvider formatProvider)
 Formats the scope into a string. More...
 
override string ToString ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
virtual Map< string, string > ToNamedStrings (string format, IFormatProvider formatProvider)
 Creates a map of key value pairs which can be used to write the scope in a structured way. More...
 
Map< string, string > ToNamedStrings (string format, IFormatProvider formatProvider)
 Creates a map of key value pairs which can be used to write the scope in a structured way. More...
 

Properties

Type Type [get]
 the type represented by the scope. More...
 

Detailed Description

A scope implementation that represents a type.

Since
Unrelesed

Constructor & Destructor Documentation

◆ TypeScope()

TypeScope.TypeScope ( Type  type)

create a new instance for a type.

Member Function Documentation

◆ Equals()

override bool TypeScope.Equals ( object  obj)

◆ GetHashCode()

override int TypeScope.GetHashCode ( )

◆ ToNamedStrings()

virtual Map< string, string > TypeScope.ToNamedStrings ( string  format,
IFormatProvider  formatProvider 
)
virtual

Creates a map of key value pairs which can be used to write the scope in a structured way.

Parameters
formatthe string that defines the output format for the scope
formatProviderprovides localization information to format the scopes information
Returns
a map of names and values that make up the information of the scope

Implements Scope.

Reimplemented in MethodScope.

◆ ToString() [1/2]

override string TypeScope.ToString ( )

◆ ToString() [2/2]

virtual string TypeScope.ToString ( string  format,
IFormatProvider  formatProvider 
)
virtual

Formats the scope into a string.

Parameters
formatthe format to use to represent the scope
formatProvidera format provider used for lacation specific representation
Returns
a string representation according to the provided format
Remarks
Supports format 'f' for the fullname and 'n' for the name without namespace and 'q' for the fully qualified assembly name.

Reimplemented in MethodScope.

Property Documentation

◆ Type

Type TypeScope.Type
get

the type represented by the scope.