PageRenderTime 10ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Test/Resources/cs/Methods.cs

http://github.com/jbevain/cecil
C# | 21 lines | 15 code | 6 blank | 0 comment | 0 complexity | eb382ea7beb91499d39bebf9c86a76c6 MD5 | raw file
 1using System;
 2using System.Runtime.InteropServices;
 3
 4abstract class Foo {
 5	public abstract void Bar (int a);
 6}
 7
 8class Bar {
 9
10	[DllImport ("foo.dll")]
11	public extern static void Pan ([MarshalAs (UnmanagedType.I4)] int i);
12}
13
14public class Baz {
15
16	public void PrintAnswer ()
17	{
18		Console.WriteLine ("answer: {0}", 42);
19	}
20}
21