mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
209 lines
4.7 KiB
209 lines
4.7 KiB
|
|
// C:\Users\Siegfried\Documents\Visual Studio 2017\Projects\ConsoleApp13\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe |
|
// ConsoleApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
|
// Global type: <Module> |
|
// Entry point: Program.main |
|
// Architecture: AnyCPU (32-bit preferred) |
|
// Runtime: .NET 4.0 |
|
|
|
using Microsoft.FSharp.Collections; |
|
using Microsoft.FSharp.Core; |
|
using Microsoft.FSharp.Core.CompilerServices; |
|
using System; |
|
using System.Collections.Generic; |
|
using System.Diagnostics; |
|
using System.Reflection; |
|
using System.Runtime.CompilerServices; |
|
using System.Runtime.InteropServices; |
|
using System.Runtime.Versioning; |
|
|
|
[assembly: FSharpInterfaceDataVersion(2, 0, 0)] |
|
[assembly: TargetFramework(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")] |
|
[assembly: AssemblyTitle("ConsoleApplication1")] |
|
[assembly: AssemblyDescription("")] |
|
[assembly: AssemblyConfiguration("")] |
|
[assembly: AssemblyCompany("")] |
|
[assembly: AssemblyProduct("ConsoleApplication1")] |
|
[assembly: AssemblyCopyright("Copyright © 2017")] |
|
[assembly: AssemblyTrademark("")] |
|
[assembly: AssemblyCulture("")] |
|
[assembly: ComVisible(false)] |
|
[assembly: Guid("e0674ff5-5e8f-4d4e-a88f-e447192454c7")] |
|
[assembly: AssemblyVersion("1.0.0.0")] |
|
[assembly: AssemblyFileVersion("1.0.0.0")] |
|
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations)] |
|
[assembly: AssemblyVersion("1.0.0.0")] |
|
[CompilationMapping(SourceConstructFlags.Module)] |
|
public static class Program |
|
{ |
|
[Serializable] |
|
[StructLayout(LayoutKind.Auto, CharSet = CharSet.Auto)] |
|
[CompilationMapping(SourceConstructFlags.Closure)] |
|
internal sealed class disposable@3 : IDisposable |
|
{ |
|
public disposable@3() |
|
{ |
|
((object)this)..ctor(); |
|
} |
|
|
|
private void System-IDisposable-Dispose() |
|
{ |
|
} |
|
|
|
void IDisposable.Dispose() |
|
{ |
|
//ILSpy generated this explicit interface implementation from .override directive in System-IDisposable-Dispose |
|
this.System-IDisposable-Dispose(); |
|
} |
|
} |
|
|
|
[Serializable] |
|
[StructLayout(LayoutKind.Auto, CharSet = CharSet.Auto)] |
|
[CompilationMapping(SourceConstructFlags.Closure)] |
|
internal sealed class getSeq@5 : GeneratedSequenceBase<int> |
|
{ |
|
[DebuggerBrowsable(DebuggerBrowsableState.Never)] |
|
[CompilerGenerated] |
|
[DebuggerNonUserCode] |
|
public int pc = pc; |
|
|
|
[DebuggerBrowsable(DebuggerBrowsableState.Never)] |
|
[CompilerGenerated] |
|
[DebuggerNonUserCode] |
|
public int current = current; |
|
|
|
public getSeq@5(int pc, int current) |
|
{ |
|
} |
|
|
|
public override int GenerateNext(ref IEnumerable<int> next) |
|
{ |
|
switch (this.pc) |
|
{ |
|
default: |
|
this.pc = 1; |
|
this.current = 1; |
|
return 1; |
|
case 1: |
|
this.pc = 2; |
|
break; |
|
case 2: |
|
break; |
|
} |
|
this.current = 0; |
|
return 0; |
|
} |
|
|
|
public override void Close() |
|
{ |
|
this.pc = 2; |
|
} |
|
|
|
public override bool get_CheckClose() |
|
{ |
|
switch (this.pc) |
|
{ |
|
default: |
|
return false; |
|
case 0: |
|
case 2: |
|
return false; |
|
} |
|
} |
|
|
|
[CompilerGenerated] |
|
[DebuggerNonUserCode] |
|
public override int get_LastGenerated() |
|
{ |
|
return this.current; |
|
} |
|
|
|
[CompilerGenerated] |
|
[DebuggerNonUserCode] |
|
public override IEnumerator<int> GetFreshEnumerator() |
|
{ |
|
return new getSeq@5(0, 0); |
|
} |
|
} |
|
|
|
public static IDisposable disposable() |
|
{ |
|
return new disposable@3(); |
|
} |
|
|
|
public static IEnumerable<int> getSeq() |
|
{ |
|
return new getSeq@5(0, 0); |
|
} |
|
|
|
public static FSharpList<int> getList() |
|
{ |
|
return FSharpList<int>.Cons(1, FSharpList<int>.Empty); |
|
} |
|
|
|
public static int[] getArray() |
|
{ |
|
return new int[1] |
|
{ |
|
1 |
|
}; |
|
} |
|
|
|
[EntryPoint] |
|
public static int main(string[] argv) |
|
{ |
|
IDisposable disposable = default(IDisposable); |
|
using (Program.disposable()) |
|
{ |
|
Console.WriteLine("Hello 1"); |
|
disposable = Program.disposable(); |
|
} |
|
using (disposable) |
|
{ |
|
IEnumerable<int> seq = Program.getSeq(); |
|
using (IEnumerator<int> enumerator = seq.GetEnumerator()) |
|
{ |
|
while (true) |
|
{ |
|
if (!enumerator.MoveNext()) |
|
break; |
|
int k = enumerator.Current; |
|
Console.WriteLine(k); |
|
} |
|
} |
|
FSharpList<int> fSharpList = Program.getList(); |
|
FSharpList<int> tailOrNull = fSharpList.TailOrNull; |
|
while (true) |
|
{ |
|
if (tailOrNull == null) |
|
break; |
|
int j = fSharpList.HeadOrDefault; |
|
Console.WriteLine(j); |
|
fSharpList = tailOrNull; |
|
tailOrNull = fSharpList.TailOrNull; |
|
} |
|
int[] array = Program.getArray(); |
|
for (int l = 0; l < array.Length; l++) |
|
{ |
|
int i = array[l]; |
|
Console.WriteLine(i); |
|
} |
|
return 0; |
|
} |
|
} |
|
} |
|
namespace <StartupCode$ConsoleApplication1> |
|
{ |
|
internal static class $Program |
|
{ |
|
} |
|
internal static class $AssemblyInfo |
|
{ |
|
} |
|
} |
|
namespace <StartupCode$ConsoleApplication1>.$.NETFramework,Version=v4.6.1 |
|
{ |
|
internal static class AssemblyAttributes |
|
{ |
|
} |
|
}
|
|
|