本文整理汇总了C#中BasicMLDataSet.GetEnumerator方法的典型用法代码示例。如果您正苦于以下问题:C# BasicMLDataSet.GetEnumerator方法的具体用法?C# BasicMLDataSet.GetEnumerator怎么用?C# BasicMLDataSet.GetEnumerator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BasicMLDataSet
的用法示例。
在下文中一共展示了BasicMLDataSet.GetEnumerator方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExportToExcel
public static void ExportToExcel(BasicMLDataSet data, DataSetEditMode mode)
{
object obj2;
int num;
int num2;
int num3;
int num4;
int num5;
int num6;
bool flag;
Application application2 = (Application) Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("00024500-0000-0000-C000-000000000046")));
goto Label_0FE4;
Label_0028:
num2++;
using (IEnumerator<IMLDataPair> enumerator = data.GetEnumerator())
{
IMLDataPair pair;
goto Label_0040;
Label_0039:
num2++;
Label_0040:
flag = enumerator.MoveNext();
if (flag)
{
goto Label_0796;
}
if (((uint) flag) < 0)
{
goto Label_01D4;
}
return;
Label_006A:
num++;
num4++;
Label_0075:
flag = num4 <= pair.ErrorArray.Length;
Label_0087:
if (flag)
{
goto Label_01DC;
}
if (((uint) num4) >= 0)
{
goto Label_07CA;
}
goto Label_01FF;
Label_00A8:;
<ExportToExcel>o__SiteContainer1.<>p__Site17 = CallSite<Func<CallSite, object, double, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.SetMember(CSharpBinderFlags.None, "Value2", typeof(ExcelDataExport), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }));
Label_00E9:
if (<ExportToExcel>o__SiteContainer1.<>p__Site18 == null)
{
示例2: RestoreDataSet
public BasicMLDataSet RestoreDataSet(BasicMLDataSet dataToProcess)
{
BasicMLDataSet set = new BasicMLDataSet();
using (IEnumerator<IMLDataPair> enumerator = dataToProcess.GetEnumerator())
{
IMLDataPair pair;
bool flag;
goto Label_0026;
Label_0011:
pair = enumerator.Current;
set.Add(this.RestoreDataVector(pair));
Label_0026:
flag = enumerator.MoveNext();
if (3 == 0)
{
goto Label_0026;
}
if (flag)
{
goto Label_0011;
}
}
return set;
}
示例3: ProcessDataSet
public BasicMLDataSet ProcessDataSet(BasicMLDataSet dataToProcess)
{
bool flag;
BasicMLDataSet set = new BasicMLDataSet();
IEnumerator<IMLDataPair> enumerator = dataToProcess.GetEnumerator();
try
{
IMLDataPair pair;
goto Label_003E;
Label_0011:
pair = enumerator.Current;
set.Add(new BasicMLDataPair(this.ProcessInputVector(pair.Input), this.ProcessIdealVector(pair.Ideal)));
Label_003E:
flag = enumerator.MoveNext();
if (flag)
{
goto Label_0011;
}
if ((((uint) flag) - ((uint) flag)) < 0)
{
goto Label_003E;
}
}
finally
{
flag = enumerator == null;
goto Label_0089;
Label_006C:
enumerator.Dispose();
if ((((uint) flag) & 0) != 0)
{
goto Label_006C;
}
goto Label_008D;
Label_0089:
if (!flag)
{
goto Label_006C;
}
Label_008D:;
}
return set;
}