Class NativeAttributesMap
Inheritance
System.Object
NativeAttributesMap
Assembly: cs.temp.dll.dll
Syntax
public class NativeAttributesMap : IReadOnlyDictionary<string, NativeAttributeValue>
Properties
Count
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Item[String]
属性のキーから値を返します。
key が存在しない場合は を投げます。
Declaration
public NativeAttributeValue this[string key] { get; }
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Property Value
Keys
属性のキーをすべて返します。
結果はキャッシュされるので2回目以降は速いです。
Declaration
public IEnumerable<string> Keys { get; }
Property Value
| Type |
Description |
| IEnumerable<System.String> |
|
Values
Declaration
public IEnumerable<NativeAttributeValue> Values { get; }
Property Value
Methods
ContainsKey(String)
属性に key が含まれていれば true,
key がなければ false を返します。
Declaration
public bool ContainsKey(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetEnumerator()
Declaration
public IEnumerator<AttrPair> GetEnumerator()
Returns
| Type |
Description |
| IEnumerator<AttrPair> |
|
GetValueOrNull(String)
Declaration
public NativeAttributeValue GetValueOrNull(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Returns
ToString()
属性の中身を、見やすくフォーマットした文字列にして返します。
子の属性も再帰的に含みます。
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
TryGetValue(String, out NativeAttributeValue)
属性辞書の中に key が存在すればその値を value に代入して true を返します。
key が存在しなければ value に null を代入して false を返します。
Declaration
public bool TryGetValue(string key, out NativeAttributeValue value)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|