C# Класс HandCoded.FpML.Schemes.CachedScheme

The CachedScheme class provides in-memory storage for the codes defined for its domain and thier associated descriptions.
Наследование: Scheme
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
values Value>.Dictionary

Открытые методы

Метод Описание
CachedScheme ( string uri ) : System

Constructs a CachedScheme instance for the indicated scheme URI.

CachedScheme ( string uri, string canonicalUri ) : System

Constructs a CachedScheme instance for the indicated scheme URI and canonical URI.

IsValid ( string code ) : bool

Determines if the given code value is valid within the scheme.

Защищенные методы

Метод Описание
Add ( Value value ) : Value

Adds a Value instance to the extent set manange by this instance. If the new value has the same code as an existing entry it will replace it and a reference to the old instance will be returned to the caller.

Описание методов

Add() защищенный Метод

Adds a Value instance to the extent set manange by this instance. If the new value has the same code as an existing entry it will replace it and a reference to the old instance will be returned to the caller.
protected Add ( Value value ) : Value
value Value The scheme to be added.
Результат Value

CachedScheme() публичный Метод

Constructs a CachedScheme instance for the indicated scheme URI.
public CachedScheme ( string uri ) : System
uri string The URI used to reference the scheme.
Результат System

CachedScheme() публичный Метод

Constructs a CachedScheme instance for the indicated scheme URI and canonical URI.
public CachedScheme ( string uri, string canonicalUri ) : System
uri string The URI used to reference the scheme.
canonicalUri string The canonical URI or null.
Результат System

IsValid() публичный Метод

Determines if the given code value is valid within the scheme.
public IsValid ( string code ) : bool
code string The code value to be validated.
Результат bool

Описание свойств

values защищенное свойство

Provides the underlying storage for the code values.
protected Dictionary values
Результат Value>.Dictionary