📄 paramelementcollection.cs
字号:
namespace PowerEasy.Web.Configuration
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
public class ParamElementCollection : ConfigurationElementCollection, IEnumerable<ParamElement>, IEnumerable
{
public bool Contains(string elementName)
{
return (this[elementName] != null);
}
protected override ConfigurationElement CreateNewElement()
{
return new ParamElement();
}
protected override ConfigurationElement CreateNewElement(string elementName)
{
return new ParamElement(elementName);
}
protected override object GetElementKey(ConfigurationElement element)
{
return ((ParamElement) element).Name;
}
public IEnumerator<ParamElement> GetEnumerator()
{
<GetEnumerator>d__0 d__ = new <GetEnumerator>d__0(0);
d__.<>4__this = this;
return d__;
}
protected override bool IsElementName(string elementName)
{
return (elementName == "param");
}
public override ConfigurationElementCollectionType CollectionType
{
get
{
return ConfigurationElementCollectionType.BasicMap;
}
}
protected override string ElementName
{
get
{
return "param";
}
}
public ParamElement this[string name]
{
get
{
return (base.BaseGet(name) as ParamElement);
}
}
public ParamElement this[int index]
{
get
{
return (ParamElement) base.BaseGet(index);
}
set
{
if (base.BaseGet(index) != null)
{
base.BaseRemoveAt(index);
}
this.BaseAdd(index, value);
}
}
protected override bool ThrowOnDuplicate
{
get
{
return true;
}
}
[CompilerGenerated]
private sealed class <GetEnumerator>d__0 : IEnumerator<ParamElement>, IEnumerator, IDisposable
{
private int <>1__state;
private ParamElement <>2__current;
public ParamElementCollection <>4__this;
public IEnumerator<ParamElement> <>7__wrap2;
public ParamElement <data>5__1;
[DebuggerHidden]
public <GetEnumerator>d__0(int <>1__state)
{
this.<>1__state = <>1__state;
}
private bool MoveNext()
{
bool flag;
try
{
switch (this.<>1__state)
{
case 0:
this.<>1__state = -1;
this.<>7__wrap2 = this.<>4__this.GetEnumerator();
this.<>1__state = 1;
goto Label_006B;
case 2:
this.<>1__state = 1;
goto Label_006B;
default:
goto Label_0092;
}
Label_003C:
this.<data>5__1 = this.<>7__wrap2.Current;
this.<>2__current = this.<data>5__1;
this.<>1__state = 2;
return true;
Label_006B:
if (this.<>7__wrap2.MoveNext())
{
goto Label_003C;
}
this.<>1__state = -1;
if (this.<>7__wrap2 != null)
{
this.<>7__wrap2.Dispose();
}
Label_0092:
flag = false;
}
fault
{
this.Dispose();
}
return flag;
}
[DebuggerHidden]
void IEnumerator.Reset()
{
throw new NotSupportedException();
}
void IDisposable.Dispose()
{
switch (this.<>1__state)
{
case 1:
case 2:
break;
default:
return;
try
{
}
finally
{
this.<>1__state = -1;
if (this.<>7__wrap2 != null)
{
this.<>7__wrap2.Dispose();
}
}
break;
}
}
ParamElement IEnumerator<ParamElement>.Current
{
[DebuggerHidden]
get
{
return this.<>2__current;
}
}
object IEnumerator.Current
{
[DebuggerHidden]
get
{
return this.<>2__current;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -