Show / Hide Table of Contents

Interface IMapper<TElement>

Interface for all mappers that have a string key and TElement as element.

Inherited Members
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, TElement>>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()
Namespace: SpiceSharpParser.ModelReaders.Netlist.Spice.Mappings
Assembly: SpiceSharpParser.dll
Syntax
public interface IMapper<TElement> : IEnumerable<KeyValuePair<string, TElement>>, IEnumerable
Type Parameters
Name Description
TElement

Methods

| Improve this Doc View Source

ContainsKey(String, Boolean)

Gets a value indicating whether a element with given key is in the mapper.

Declaration
bool ContainsKey(string key, bool caseSensitive)
Parameters
Type Name Description
System.String key

A key.

System.Boolean caseSensitive

Is key case-sensitive.

Returns
Type Description
System.Boolean

A value indicating whether a element with specified key is in mapper.

| Improve this Doc View Source

GetValue(String, Boolean)

Gets an element with given key.

Declaration
TElement GetValue(string key, bool caseSensitive)
Parameters
Type Name Description
System.String key

A key of the element.

System.Boolean caseSensitive

Is key case-sensitive.

Returns
Type Description
TElement

The element or exception.

| Improve this Doc View Source

Map(String, TElement)

Maps the key with given element.

Declaration
void Map(string key, TElement element)
Parameters
Type Name Description
System.String key

A key of the element.

TElement element

An element.

| Improve this Doc View Source

Map(String[], TElement)

Maps the keys with given element.

Declaration
void Map(string[] keys, TElement element)
Parameters
Type Name Description
System.String[] keys

Keys of the element.

TElement element

An element.

| Improve this Doc View Source

TryGetValue(String, Boolean, out TElement)

Tries to get the element for given key.

Declaration
bool TryGetValue(string key, bool caseSensitive, out TElement value)
Parameters
Type Name Description
System.String key

A key of element.

System.Boolean caseSensitive

Is key name case-sensitive.

TElement value

A value of element.

Returns
Type Description
System.Boolean

A reference to the element.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX