Class KnownTypesContainer
Контейнер известных типов для сериализации.
Inheritance
System.Object
KnownTypesContainer
Namespace:InfinniPlatform.Serialization
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public class KnownTypesContainer : IEnumerable<KeyValuePair<Type, string>>
Methods
| Improve this Doc View SourceAdd(Type, String)
Добавить тип.
Declaration
public KnownTypesContainer Add(Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Тип. |
System.String | name | Имя типа. |
Returns
Type | Description |
---|---|
KnownTypesContainer |
Add<T>(String)
Добавить тип.
Declaration
public KnownTypesContainer Add<T>(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Имя типа. |
Returns
Type | Description |
---|---|
KnownTypesContainer |
Type Parameters
Name | Description |
---|---|
T | Тип. |
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<Type, string>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<KeyValuePair<Type, System.String>> |
GetName(Type)
Получить имя типа по типу.
Declaration
public string GetName(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Тип. |
Returns
Type | Description |
---|---|
System.String | Имя типа. |
GetType(String)
Получить тип по имени типа.
Declaration
public Type GetType(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Имя типа. |
Returns
Type | Description |
---|---|
Type | Тип. |
HasName(String)
Содержит тип с указанным именем.
Declaration
public bool HasName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Имя типа. |
Returns
Type | Description |
---|---|
System.Boolean |
HasType(Type)
Содержит указанный тип.
Declaration
public bool HasType(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Тип. |
Returns
Type | Description |
---|---|
System.Boolean |
IsKnownType(Type)
Является известным типом.
Declaration
public bool IsKnownType(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Тип. |
Returns
Type | Description |
---|---|
System.Boolean |