Class CityObjectList.Attributes
シリアライズ可能なAttributeMapデータです。
Inheritance
System.Object
CityObjectList.Attributes
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[String]
Declaration
public CityObjectList.Attributes.Value this[string key] { get; }
Parameters
Type |
Name |
Description |
System.String |
key |
|
Property Value
Keys
Declaration
public IEnumerable<string> Keys { get; }
Property Value
Type |
Description |
IEnumerable<System.String> |
|
Values
Declaration
public IEnumerable<CityObjectList.Attributes.Value> Values { get; }
Property Value
Methods
AddAttribute(String, AttributeType, Object)
Declaration
public void AddAttribute(string key, AttributeType type, object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
AttributeType |
type |
|
System.Object |
value |
|
AddAttribute(String, NativeAttributeValue)
Declaration
public void AddAttribute(string key, NativeAttributeValue value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
NativeAttributeValue |
value |
|
AddAttributes(CityObjectList.Attributes)
AttributesにAttributesを追加します。
すでに存在するキーは無視されます。
Declaration
public void AddAttributes(CityObjectList.Attributes attrs)
Parameters
DebugString(Int32)
Declaration
public string DebugString(int indent)
Parameters
Type |
Name |
Description |
System.Int32 |
indent |
|
Returns
Type |
Description |
System.String |
|
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<string, CityObjectList.Attributes.Value>> GetEnumerator()
Returns
TryGetValue(String, out CityObjectList.Attributes.Value)
属性情報のキーバリューペアのうち、キーを指定してバリューを得ます。
成否をboolで返します。
Declaration
public bool TryGetValue(string key, out CityObjectList.Attributes.Value val)
Parameters
Returns
Type |
Description |
System.Boolean |
|
TryGetValueWithSlash(String, out CityObjectList.Attributes.Value)
属性情報のキーバリューペアのうち、キーを指定してバリューを得ます。
キーにスラッシュ"/"を含む場合、属性情報が入れ子になっていると見なし、再帰的にキーを探索してバリューを取得します。
成否をboolで返します。
Declaration
public bool TryGetValueWithSlash(string keyWithSlash, out CityObjectList.Attributes.Value val)
Parameters
Returns
Type |
Description |
System.Boolean |
|