1 /* ****************************************************************************
3 * Copyright (c) Microsoft Corporation.
5 * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
6 * copy of the license can be found in the License.html file at the root of this distribution. If
7 * you cannot locate the Apache License, Version 2.0, please send an email to
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
9 * by the terms of the Apache License, Version 2.0.
11 * You must not remove this notice, or any other, from this software.
14 * ***************************************************************************/
18 // When compiled with Dev10 VS CSC reports errors if this is not defined
19 // error CS0656: Missing compiler required member 'System.Threading.Thread.get_ManagedThreadId'
20 // error CS0656: Missing compiler required member 'System.Threading.Thread.get_CurrentThread'
21 namespace System.Threading {
22 internal class Thread {
23 public int ManagedThreadId { get { throw new NotImplementedException(); } }
24 public static Thread CurrentThread { get { throw new NotImplementedException(); } }
30 public enum FileMode {
40 public enum FileAccess {
47 public enum FileShare {
58 public static class TypeExtensions {
59 #if !FEATURE_GET_TYPE_INFO
60 public static Type GetTypeInfo(this Type type) {
65 public static Type AsType(this Type type) {
72 #if !FEATURE_SERIALIZATION
75 using System.Diagnostics;
78 public class SerializableAttribute : Attribute {
82 public class NonSerializedAttribute : Attribute {
85 namespace Runtime.Serialization {
86 public interface ISerializable {
89 public interface IDeserializationCallback {
93 public class SerializationException : Exception {
99 #if SILVERLIGHT && !CLR2
102 namespace Runtime.InteropServices {
104 /// The Default Parameter Value Attribute.
106 public sealed class DefaultParameterValueAttribute : Attribute {
110 /// <param name="value">The value.</param>
111 public DefaultParameterValueAttribute(object value) { }