1 // CS1110: `C.Foo(this string)': Extension methods require `System.Runtime.CompilerServices.ExtensionAttribute' type to be available. Are you missing an assembly reference?
3 // Compiler options: -noconfig -nostdlib
7 static void Foo (this string s
)
16 object value_with_no_base
;
20 public struct Int16
{}
21 public struct Int32
{}
22 public struct Int64
{}
23 public struct Single
{}
24 public struct Double
{}
26 public struct Boolean
{}
27 public struct SByte
{}
28 public struct UInt16
{}
29 public struct UInt32
{}
30 public struct UInt64
{}
31 public struct IntPtr
{}
32 public struct UIntPtr
{}
33 public struct Decimal { }
34 public class String { }
35 public class Delegate
{}
36 public class MulticastDelegate
{}
38 public class Exception
{}
40 public class ValueType
{}
42 public class Attribute
{}
44 public class ParamArrayAttribute
{}
45 public class DefaultMemberAttribute
{}
46 public struct RuntimeTypeHandle
{}
47 public struct RuntimeFieldHandle
{}
49 public interface IDisposable
{}
52 namespace System
.Runtime
.InteropServices
54 public class OutAttribute
{}
58 namespace System
.Collections
60 public interface IEnumerable
{}
61 public interface IEnumerator
{}
64 namespace System
.Reflection
66 public class DefaultMemberAttribute
{}