📄 administrativearea.cs
字号:
namespace Imps.Client.Resource
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
public class AdministrativeArea : IDictionary<string, AdministrativeArea>, ICollection<KeyValuePair<string, AdministrativeArea>>, IEnumerable<KeyValuePair<string, AdministrativeArea>>, IEnumerable
{
private string _key;
private string _name;
private AdministrativeArea _parentArea;
private Dictionary<string, AdministrativeArea> _subArea;
public AdministrativeArea(string key, string name) : this(null, key, name)
{
}
public AdministrativeArea(AdministrativeArea parentArea, string key, string name)
{
this._key = key;
this._name = name;
this._parentArea = parentArea;
this._subArea = new Dictionary<string, AdministrativeArea>();
}
public void Add(KeyValuePair<string, AdministrativeArea> item)
{
throw new Exception("The method or operation is not implemented.");
}
public void Add(string key, AdministrativeArea value)
{
this._subArea.Add(key, value);
}
public void Clear()
{
throw new Exception("The method or operation is not implemented.");
}
public bool Contains(KeyValuePair<string, AdministrativeArea> item)
{
throw new Exception("The method or operation is not implemented.");
}
public bool ContainsKey(string key)
{
return this._subArea.ContainsKey(key);
}
public void CopyTo(KeyValuePair<string, AdministrativeArea>[] array, int arrayIndex)
{
throw new Exception("The method or operation is not implemented.");
}
public IEnumerator<KeyValuePair<string, AdministrativeArea>> GetEnumerator()
{
return this._subArea.GetEnumerator();
}
public bool Remove(KeyValuePair<string, AdministrativeArea> item)
{
throw new Exception("The method or operation is not implemented.");
}
public bool Remove(string key)
{
throw new Exception("The method or operation is not implemented.");
}
IEnumerator IEnumerable.GetEnumerator()
{
return this._subArea.GetEnumerator();
}
public bool TryGetValue(string key, out AdministrativeArea value)
{
return this._subArea.TryGetValue(key, ref value);
}
public int Count
{
get
{
return this._subArea.get_Count();
}
}
public bool HasChildArea
{
get
{
return (this._subArea.get_Count() > 0);
}
}
public bool IsReadOnly
{
get
{
return true;
}
}
public AdministrativeArea this[string key]
{
get
{
return this._subArea.get_Item(key);
}
set
{
throw new Exception("The method or operation is not implemented.");
}
}
public string Key
{
get
{
return this._key;
}
set
{
this._key = value;
}
}
public ICollection<string> Keys
{
get
{
return this._subArea.get_Keys();
}
}
public string Name
{
get
{
return this._name;
}
set
{
this._name = value;
}
}
public AdministrativeArea ParentArea
{
get
{
return this._parentArea;
}
set
{
this._parentArea = value;
}
}
public Dictionary<string, AdministrativeArea> SubArea
{
get
{
return this._subArea;
}
set
{
this._subArea = value;
}
}
public ICollection<AdministrativeArea> Values
{
get
{
return this._subArea.get_Values();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -