//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Threading.Tasks;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections.Concurrent;
[assembly: ComVisible (false)]
-#if NET_4_0 || MOBILE
+#if NET_4_0
[assembly: TypeForwardedTo (typeof (System.Security.Cryptography.Aes))]
#endif
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
[DebuggerDisplay ("Count={Count}")]
[DebuggerTypeProxy (typeof (CollectionDebuggerView<,>))]
public class HashSet<T> : ICollection<T>, ISerializable, IDeserializationCallback
-#if NET_4_0 || MOBILE
+#if NET_4_0
, ISet<T>
#endif
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Security.AccessControl;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Threading.Tasks;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Threading.Tasks;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Linq.Parallel.QueryNodes
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Linq.Parallel.QueryNodes
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Threading.Tasks;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Linq;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq.Parallel.QueryNodes;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Linq.Parallel
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Threading.Tasks;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Linq;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Linq.Parallel.QueryNodes;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Linq.Parallel.QueryNodes;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Linq;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
#endregion
-#if NET_4_0 || MOBILE
+#if NET_4_0
#region Zip
public static IEnumerable<TResult> Zip<TFirst, TSecond, TResult> (this IEnumerable<TFirst> first, IEnumerable<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector)
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Linq
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Linq.Expressions;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Linq
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Linq
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Linq
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
#endregion
-#if NET_4_0 || MOBILE
+#if NET_4_0
#region Zip
public static IQueryable<TResult> Zip<TFirst, TSecond, TResult> (this IQueryable<TFirst> source1, IEnumerable<TSecond> source2, Expression<Func<TFirst, TSecond, TResult>> resultSelector)
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
public T Value;
-#if NET_4_0 || MOBILE
+#if NET_4_0
public StrongBox ()
{
}
//
// Since 4.0 (both FX and SL) this type is defined in mscorlib - before 4.0 it was in System.Core.dll
-#if (INSIDE_CORLIB && (NET_4_0 || MOBILE)) || (!INSIDE_CORLIB && !NET_4_0 && !MOBILE)
+#if (INSIDE_CORLIB && (NET_4_0)) || (!INSIDE_CORLIB && !NET_4_0 && !MOBILE)
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading.Tasks
{
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.CompilerServices;
using System;
using System.Runtime.CompilerServices;
-#if NET_4_0 || MOBILE
+#if NET_4_0
[assembly:TypeForwardedTo (typeof(Action<>))]
[assembly:TypeForwardedTo (typeof(Action<,>))]
[assembly:TypeForwardedTo (typeof(Action<,,>))]
namespace System
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
public delegate void Action<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9> (
T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9);
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.CompilerServices;
namespace System
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, out TResult> (
T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9);
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.CompilerServices;
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#if (INSIDE_CORLIB && (NET_4_0 || MOBILE)) || (!INSIDE_CORLIB && (NET_3_5 && !NET_4_0 && !MOBILE))
+#if (INSIDE_CORLIB && NET_4_0) || (!INSIDE_CORLIB && (NET_3_5 && !NET_4_0 && !MOBILE))
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#if (INSIDE_CORLIB && (NET_4_0 || MOBILE)) || (!INSIDE_CORLIB && (NET_3_5 && !NET_4_0 && !MOBILE))
+#if (INSIDE_CORLIB && NET_4_0) || (!INSIDE_CORLIB && (NET_3_5 && !NET_4_0 && !MOBILE))
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System;
using System.Runtime.CompilerServices;
-#if !INSIDE_CORLIB && (NET_4_0 || MOBILE)
+#if !INSIDE_CORLIB && NET_4_0
[assembly:TypeForwardedTo (typeof(TimeZoneInfo))]
-#elif (INSIDE_CORLIB && (NET_4_0 || MOBILE)) || (!INSIDE_CORLIB && (NET_3_5 && !NET_4_0 && !MOBILE))
+#elif (INSIDE_CORLIB && NET_4_0) || (!INSIDE_CORLIB && (NET_3_5 && !NET_4_0 && !MOBILE))
using System.Collections.Generic;
using System.Collections.ObjectModel;
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.CompilerServices;
TransportCredentialOnly,
}
-#if NET_4_5 || MOBILE
+#if NET_4_5
public enum BasicHttpsSecurityMode
{
Transport,
{
public sealed class BasicHttpSecurity
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
public BasicHttpSecurity ()
{
this.mode = BasicHttpSecurityMode.None;
public BasicHttpMessageSecurity Message {
get { return message; }
-#if NET_4_0 || MOBILE
+#if NET_4_0
set { message = value; }
#endif
}
public HttpTransportSecurity Transport {
get { return transport; }
-#if NET_4_0 || MOBILE
+#if NET_4_0
set { transport = value; }
#endif
}
HttpProxyCredentialType proxy;
string realm = String.Empty;
-#if NET_4_0 || MOBILE
+#if NET_4_0
public
#else
internal
return xvr != null ? xvr : reader;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public void Dispose ()
#else
void IDisposable.Dispose()
Close ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public void Dispose ()
#else
void IDisposable.Dispose()
//set { outputMethod = value; }
}
-#if MOBILE || NET_4_0
+#if NET_4_0
public
#else
internal
{
None = 0,
DisableFormatting = 1,
-#if NET_4_0 || MOBILE
+#if NET_4_0
OmitDuplicateNamespaces = 2
#endif
}
}
}
-#if MOBILE || NET_4_0
+#if NET_4_0
public static XElement Load (Stream stream)
{
return Load (stream, LoadOptions.None);
if ((options & SaveOptions.DisableFormatting) == SaveOptions.None)
s.Indent = true;
-#if NET_4_0 || MOBILE
+#if NET_4_0
if ((options & SaveOptions.OmitDuplicateNamespaces) == SaveOptions.OmitDuplicateNamespaces)
s.NamespaceHandling |= NamespaceHandling.OmitDuplicates;
#endif
if ((options & SaveOptions.DisableFormatting) == SaveOptions.None)
s.Indent = true;
-#if NET_4_0 || MOBILE
+#if NET_4_0
if ((options & SaveOptions.OmitDuplicateNamespaces) == SaveOptions.OmitDuplicateNamespaces)
s.NamespaceHandling |= NamespaceHandling.OmitDuplicates;
#endif
WriteTo (writer);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public void Save (Stream stream)
{
Save (stream, SaveOptions.None);
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
using System.Collections.Generic;
// SortedSet is basically implemented as a reduction of SortedDictionary<K, V>
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Collections.Generic {
// Marek Safar (marek.safar@gmail.com)
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
// Chris Toshok (toshok@novell.com)
// Brian O'Keefe (zer0keefie@gmail.com)
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections.Specialized;
using System.ComponentModel;
using System.Runtime.CompilerServices;
// Chris Toshok (toshok@ximian.com)
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.CompilerServices;
namespace System.Collections.Specialized {
// Authors:
// Chris Toshok (toshok@ximian.com)
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.CompilerServices;
namespace System.Collections.Specialized
// Chris Toshok (toshok@ximian.com)
// Brian O'Keefe (zer0keefie@gmail.com)
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.CompilerServices;
namespace System.Collections.Specialized
// Authors:
// Chris Toshok (toshok@ximian.com)
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.CompilerServices;
namespace System.Collections.Specialized
TraceImpl.Assert (condition, message, detailMessage);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[Conditional ("DEBUG")]
public static void Assert (bool condition, string message,
string detailMessageFormat, params object [] args)
TraceImpl.WriteLine (message);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[Conditional("DEBUG")]
public static void WriteLine (string format, params object [] args)
{
is_running = false;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public void Restart ()
{
started = GetTimestamp ();
internal ServicePoint ServicePointNoLock {
get { return servicePoint; }
}
-#if NET_4_5 || MOBILE
+#if NET_4_5
[MonoTODO ("for portable library support")]
public bool SupportsCookieContainer {
get {
throw new ArgumentNullException ("requestUri");
return GetCreator (requestUri.Scheme).Create (requestUri);
}
-#if NET_4_5 || MOBILE
+#if NET_4_5
[MonoTODO ("for portable library support")]
public static HttpWebRequest CreateHttp (string requestUriString)
{
public virtual Uri ResponseUri { \r
get { throw new NotSupportedException (); }\r
} \r
-#if NET_4_5 || MOBILE\r
+#if NET_4_5\r
[MonoTODO ("for portable library support")]\r
public virtual bool SupportsHeaders {\r
get { throw new NotImplementedException (); }\r
}\r
#if TARGET_JVM //enable overrides for extenders\r
public virtual void Dispose()\r
-#elif NET_4_0 || MOBILE\r
+#elif NET_4_0\r
public void Dispose ()\r
#else\r
void IDisposable.Dispose()\r
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Diagnostics;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.Serialization;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_5 || MOBILE
+#if NET_4_5
namespace System.Windows.Input {
//
public Uri MakeRelativeUri (Uri uri)
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (uri == null)
throw new ArgumentNullException ("uri");
#endif
public bool IsBaseOf (Uri uri)
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (uri == null)
throw new ArgumentNullException ("uri");
#endif
result = null;
if ((baseUri == null) || !baseUri.IsAbsoluteUri)
return false;
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (relativeUri == null)
return false;
#endif
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
//
//
-#if NET_4_0 || INSIDE_SYSTEM_WEB || MOBILE
+#if NET_4_0 || INSIDE_SYSTEM_WEB
using System;
using System.Threading;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.InteropServices;
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
}
[CLSCompliant (false)]
-#if NET_4_0 || MOBILE
+#if NET_4_0
[Obsolete]
#endif
public virtual ulong CurrentSize {
}
[CLSCompliant (false)]
-#if NET_4_0 || MOBILE
+#if NET_4_0
[Obsolete]
#endif
public virtual ulong MaximumSize {
get { return storage_scope; }
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public virtual long AvailableFreeSpace {
get {
}
public abstract void Remove ();
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public virtual bool IncreaseQuotaTo (long newQuotaSize)
{
#endif
private Evidence _fullEvidences;
private static readonly Mutex mutex = new Mutex ();
-#if NET_4_0 || MOBILE
+#if NET_4_0
private bool closed;
private bool disposed;
#endif
return storageFile;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public static IsolatedStorageFile GetUserStoreForSite ()
{
}
[CLSCompliant(false)]
-#if NET_4_0 || MOBILE
+#if NET_4_0
[Obsolete]
#endif
public override ulong CurrentSize {
}
[CLSCompliant(false)]
-#if NET_4_0 || MOBILE
+#if NET_4_0
[Obsolete]
#endif
public override ulong MaximumSize {
get { return directory.FullName; }
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public override long AvailableFreeSpace {
get {
public void Close ()
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
closed = true;
#endif
}
if (dir.IndexOfAny (Path.PathSeparatorChars) < 0) {
if (directory.GetFiles (dir).Length > 0)
-#if NET_4_0 || MOBILE
+#if NET_4_0
throw new IsolatedStorageException ("Unable to create directory.");
#else
throw new IOException (Locale.GetText ("Directory name already exists as a file."));
for (int i = 0; i < dirs.Length; i++) {
if (dinfo.GetFiles (dirs [i]).Length > 0)
-#if NET_4_0 || MOBILE
+#if NET_4_0
throw new IsolatedStorageException ("Unable to create directory.");
#else
throw new IOException (Locale.GetText (
}
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public void CopyFile (string sourceFileName, string destinationFileName)
{
public void Dispose ()
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
// Dispose may be calling Close, but we are not sure
disposed = true;
#endif
GC.SuppressFinalize (this);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public bool DirectoryExists (string path)
{
{
if (searchPattern == null)
throw new ArgumentNullException ("searchPattern");
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (searchPattern.Contains (".."))
throw new ArgumentException ("Search pattern cannot contain '..' to move up directories.", "searchPattern");
#endif
return GetNames (adi);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public string [] GetDirectoryNames ()
{
{
if (searchPattern == null)
throw new ArgumentNullException ("searchPattern");
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (searchPattern.Contains (".."))
throw new ArgumentException ("Search pattern cannot contain '..' to move up directories.", "searchPattern");
#endif
return GetNames (afi);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (false)]
public string [] GetFileNames ()
{
public override void Remove ()
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
CheckOpen (false);
#endif
try {
}
// internal stuff
-#if NET_4_0 || MOBILE
+#if NET_4_0
void CheckOpen ()
{
CheckOpen (true);
#endif
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (isf.IsDisposed)
throw new ObjectDisposedException ("IsolatedStorageFile");
if (isf.IsClosed)
base.Flush ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override void Flush (bool flushToDisk)
{
base.Flush (flushToDisk);
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.IO.IsolatedStorage
{
public enum IsolatedStorageSecurityOptions
using System.Security;
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.IO.IsolatedStorage
{
return result;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public static string[] GetFileSystemEntries (string path, string searchPattern, SearchOption searchOption)
{
// Take the simple way home:
Directory.SetAccessControl (FullPath, directorySecurity);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public IEnumerable<DirectoryInfo> EnumerateDirectories ()
{
throw new NotSupportedException (Locale.GetText ("File encryption isn't supported on any file system."));
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public static IEnumerable<string> ReadLines (string path)
{
return ReadLines (File.OpenText (path));
FlushBuffer ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public virtual void Flush (bool flushToDisk)
{
FlushBuffer ();
return String.Compare (subset, slast, path, slast, subset.Length - slast) == 0;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public
#else
internal
return ret.ToString ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public
#else
internal
return Combine (new string [] { path1, path2, path3 });
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public
#else
internal
}
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public void CopyTo (Stream destination)
{
CopyTo (destination, 16*1024);
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.InteropServices;
IntPtr initial_pointer;
long initial_position;
long current_position;
-#if NET_4_0 || MOBILE
+#if NET_4_0
SafeBuffer safebuffer;
#endif
Initialize (pointer, length, capacity, access);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public UnmanagedMemoryStream (SafeBuffer buffer, long offset, long length) :
this (buffer, offset, length, FileAccess.Read)
{
[CLSCompliantAttribute (false)]
public unsafe byte* PositionPointer {
get {
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (safebuffer != null)
throw new NotSupportedException ("Not supported when using SafeBuffer");
#endif
return (byte *) initial_pointer + current_position;
}
set {
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (safebuffer != null)
throw new NotSupportedException ("Not supported when using SafeBuffer");
#endif
return 0;
int progress = current_position + count < length ? count : (int) (length - current_position);
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (safebuffer != null) {
unsafe {
byte *ptr = null;
if (current_position >= length)
return (-1);
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (safebuffer != null) {
unsafe {
byte *ptr = null;
public override void SetLength (long value)
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (safebuffer != null)
throw new NotSupportedException ("Not supported when using SafeBuffer");
#endif
if (fileaccess == FileAccess.Read)
throw new NotSupportedException ("Stream does not support writing.");
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (safebuffer != null) {
unsafe {
byte *dest = null;
if (fileaccess == FileAccess.Read)
throw new NotSupportedException("Stream does not support writing.");
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (safebuffer != null) {
unsafe {
byte *dest = null;
closed = false;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
protected void Initialize (SafeBuffer buffer, long offset, long length, FileAccess access)
{
if (buffer == null)
throw new NotImplementedException ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override Type GetType (string name, bool throwOnError, bool ignoreCase)
{
if (name == null)
return ig.code_len;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public
#else
internal
throw new NotImplementedException ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override Assembly Assembly {
get { return assemblyb; }
}
private bool fromByteArray;
private string assemblyName;
-#if NET_4_0 || MOBILE
+#if NET_4_0
protected
#else
internal
[MonoTODO ("Not implemented")]
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
virtual
#endif
Module LoadModule (string moduleName, byte [] rawModule, byte [] rawSymbolStore)
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
virtual
#endif
Object CreateInstance (String typeName, Boolean ignoreCase,
[MonoTODO ("Currently it always returns zero")]
[ComVisible (false)]
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
virtual
#endif
long HostContext {
#endif
-#if NET_4_0 || MOBILE
+#if NET_4_0
static Exception CreateNIE ()
{
return new NotImplementedException ("Derived classes must implement it");
[Serializable]
[ClassInterfaceAttribute (ClassInterfaceType.None)]
[StructLayout (LayoutKind.Sequential)]
-#if NET_4_0 || MOBILE
+#if NET_4_0
public abstract class Module : ISerializable, ICustomAttributeProvider, _Module {
#else
public partial class Module : ISerializable, ICustomAttributeProvider, _Module {
const BindingFlags defaultBindingFlags =
BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance;
-#if NET_4_0 || MOBILE
+#if NET_4_0
protected
#else
internal
#endif
-#if NET_4_0 || MOBILE
+#if NET_4_0
public virtual Assembly Assembly {
get { throw CreateNIE (); }
namespace System.Reflection {
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (true)]
[ComDefaultInterfaceAttribute (typeof (_Assembly))]
[Serializable]
public partial class Assembly {
#endif
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Type GetType (string name, bool throwOnError, bool ignoreCase)
throw new ArgumentException ("name", "Name cannot be empty");
res = InternalGetType (null, name, throwOnError, ignoreCase);
-#if !(NET_4_0 || MOBILE) && !FULL_AOT_RUNTIME
+#if !NET_4_0 && !FULL_AOT_RUNTIME
if (res is TypeBuilder) {
if (throwOnError)
throw new TypeLoadException (string.Format ("Could not load type '{0}' from assembly '{1}'", name, this));
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Module GetModule (String name)
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
AssemblyName[] GetReferencedAssemblies () {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Module[] GetModules (bool getResourceModules) {
[MonoTODO ("Always returns the same as GetModules")]
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Module[] GetLoadedModules (bool getResourceModules)
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Assembly GetSatelliteAssembly (CultureInfo culture)
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Assembly GetSatelliteAssembly (CultureInfo culture, Version version)
//FIXME remove GetManifestModule under v4, it's a v2 artifact
[ComVisible (false)]
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Module ManifestModule {
namespace System.Reflection {
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ComVisible (true)]
[ComDefaultInterfaceAttribute (typeof (_Module))]
[Serializable]
#endif
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Assembly Assembly {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
// Note: we do not ask for PathDiscovery because no path is returned here.
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
string ScopeName {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
int MDStreamVersion {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Guid ModuleVersionId {
}
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
bool IsResource()
return is_resource;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
return filtered.ToArray ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
return (globalType != null) ? globalType.GetField (name, bindingAttr) : null;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
return (globalType != null) ? globalType.GetFields (bindingFlags) : new FieldInfo [0];
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
get { return get_MetadataToken (this); }
}
protected
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#else
virtual
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
MethodInfo[] GetMethods (BindingFlags bindingFlags) {
return (globalType != null) ? globalType.GetMethods (bindingFlags) : new MethodInfo [0];
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
ModuleHandle.GetPEKind (out peKind, out machine);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
return assembly.InternalGetType (this, className, throwOnError, ignoreCase);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
FieldInfo ResolveField (int metadataToken, Type [] genericTypeArguments, Type [] genericMethodArguments) {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
MemberInfo ResolveMember (int metadataToken, Type [] genericTypeArguments, Type [] genericMethodArguments) {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
MethodBase ResolveMethod (int metadataToken, Type [] genericTypeArguments, Type [] genericMethodArguments) {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
string ResolveString (int metadataToken) {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
Type ResolveType (int metadataToken, Type [] genericTypeArguments, Type [] genericMethodArguments) {
}
public
-#if NET_4_0 || MOBILE
+#if NET_4_0
override
#endif
byte[] ResolveSignature (int metadataToken) {
}
#endif
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override
#else
public virtual
return InternalGetTypes ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public override IList<CustomAttributeData> GetCustomAttributesData () {
return CustomAttributeData.GetCustomAttributes (this);
}
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.InteropServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Runtime.CompilerServices
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.IO;
//
using System;
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Runtime.Versioning
{
[AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
return this;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public StringBuilder Clear ()
{
Length = 0;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
using System.Collections.Generic;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Threading.Tasks
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.Serialization;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Generic;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading.Tasks
{
//
//
-#if NET_4_5 || MOBILE
+#if NET_4_5
using System;
using System.Runtime.CompilerServices;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections.Generic;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Threading.Tasks
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading.Tasks
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Diagnostics;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Concurrent;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading.Tasks
{
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading.Tasks
{
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading.Tasks
{
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections.Generic;
using System.Diagnostics;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.Serialization;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Threading.Tasks
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.CompilerServices;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections.Generic;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Threading.Tasks
_t = null;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public void Dispose ()
#else
void IDisposable.Dispose ()
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Collections.Generic;
using System.Collections.Concurrent;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading
{
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
*/
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.Serialization;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading
{
}
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[MethodImplAttribute(MethodImplOptions.InternalCall)]
extern static void try_enter_with_atomic_var (object obj, int millisecondsTimeout, ref bool lockTaken);
using System;
using System.Diagnostics;
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System.Threading
{
[System.Diagnostics.DebuggerDisplayAttribute ("Current Count = {currCount}")]
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.Concurrent;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Threading
ResetAbort_internal ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[HostProtectionAttribute (SecurityAction.LinkDemand, Synchronization = true, ExternalThreading = true)]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
[ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)]
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.Serialization;
using System.Runtime.InteropServices;
Dispose(true);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public void Dispose ()
#else
void IDisposable.Dispose ()
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
namespace System.Threading
namespace System
{
-#if NET_4_0 || MOBILE
+#if NET_4_0
#if MOBILE
[TypeForwardedFrom (Consts.AssemblySystem_Core)]
#elif NET_4_0
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
}
#endif
-#if NET_4_0 || MOBILE
+#if NET_4_0
List<string> compatibility_switch;
public bool? IsCompatibilitySwitchSet (string value)
serialized_non_primitives = ms.ToArray ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[MonoTODO ("not implemented, does not throw because it's used in testing moonlight")]
public void SetCompatibilitySwitches (IEnumerable<string> switches)
{
[ComVisible (true)]
// FIXME: We are doing way to many double/triple exception checks for the overloaded functions"
public abstract class Array : ICloneable, ICollection, IList, IEnumerable
-#if NET_4_0 || MOBILE
+#if NET_4_0
, IStructuralComparable, IStructuralEquatable
#endif
{
return new SimpleEnumerator (this);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
int IStructuralComparable.CompareTo (object other, IComparer comparer)
{
if (other == null)
return true;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public static bool TryParse<TEnum> (string value, out TEnum result) where TEnum : struct
{
return TryParse (value, false, out result);
}
return retVal;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public bool HasFlag (Enum flag)
{
var val = get_value ();
ProgramFiles = 0x26,
MyPictures = 0x27,
CommonProgramFiles = 0x2b,
-#if NET_4_0 || MOBILE
+#if NET_4_0
MyVideos = 0x0e,
#endif
#if NET_4_0
case SpecialFolder.Templates:
return ReadXdgUserDir (config, home, "XDG_TEMPLATES_DIR", "Templates");
-#if NET_4_0 || MOBILE
+#if NET_4_0
case SpecialFolder.MyVideos:
return ReadXdgUserDir (config, home, "XDG_VIDEOS_DIR", "Videos");
#endif
throw new NotImplementedException ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[SecurityCritical]
public static void FailFast (string message, Exception exception)
{
namespace System {
-#if NET_4_0 || MOBILE
+#if NET_4_0
#if MOBILE
[TypeForwardedFrom (Consts.AssemblySystem_Core)]
#elif NET_4_0
}
#endif
-#if NET_4_0 || MOBILE
+#if NET_4_0
[MethodImplAttribute (MethodImplOptions.InternalCall)]
internal extern static void register_ephemeron_array (Ephemeron[] array);
return !( a.Equals (b) );
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public static Guid Parse (string input)
{
if (input == null)
case 'P':
case 'p':
return Format.P;
-#if NET_4_0 || MOBILE
+#if NET_4_0
case 'X':
case 'x':
return Format.X;
}
throw new FormatException (
-#if NET_4_0 || MOBILE
+#if NET_4_0
"Format String can be only one of \"D\", \"d\", \"N\", \"n\", \"P\", \"p\", \"B\", \"b\", \"X\" or \"x\""
#else
"Format String can be only one of \"D\", \"d\", \"N\", \"n\", \"P\", \"p\", \"B\" or \"b\""
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
namespace System
{
return value.m_value;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[ReliabilityContract (Consistency.MayCorruptInstance, Cer.MayFail)]
public static IntPtr Add (IntPtr pointer, int offset)
{
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.CompilerServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Runtime.Serialization;
public class OperationCanceledException : SystemException
{
const int Result = unchecked ((int)0x8013153b);
-#if NET_4_0 || MOBILE
+#if NET_4_0
CancellationToken? token;
#endif
{
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public OperationCanceledException (CancellationToken token)
: this ()
{
return InternalIsInterned (str);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public static string Join (string separator, params string [] value)
#else
public static string Join (string separator, string [] value)
}
}
-#if MOBILE || NET_4_0
+#if NET_4_0
[ComVisible(false)]
public static string Concat (IEnumerable<string> values)
{
[Serializable]
[System.Runtime.InteropServices.ComVisible (true)]
public struct TimeSpan : IComparable, IComparable<TimeSpan>, IEquatable <TimeSpan>
-#if NET_4_0 || MOBILE
+#if NET_4_0
, IFormattable
#endif
{
return p.Execute (true, out result);
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public static TimeSpan Parse (string input, IFormatProvider formatProvider)
{
if (input == null)
return sb.ToString ();
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
public string ToString (string format)
{
return ToString (format, null);
private int _cur = 0;
private int _length;
ParseError parse_error;
-#if NET_4_0 || MOBILE
+#if NET_4_0
bool parsed_ticks;
NumberFormatInfo number_format;
int parsed_numbers_count;
{
_src = src;
_length = _src.Length;
-#if NET_4_0 || MOBILE
+#if NET_4_0
number_format = GetNumberFormatInfo (null);
#endif
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
// Reset state data, so we can execute another parse over the input.
void Reset ()
{
return res;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
// Used for custom formats parsing, where we may need to declare how
// many digits we expect, as well as the maximum allowed.
private int ParseIntExact (int digit_count, int max_digit_count)
if (!optional && (count == 0))
SetParseError (ParseError.Format);
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (count > 0)
parsed_numbers_count++;
#endif
return (int)res;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
// This behaves pretty much like ParseOptDot, but we need to have it
// as a separated routine for both days and decimal separators.
private bool ParseOptDaysSeparator ()
if (!digitseen)
SetParseError (ParseError.Format);
-#if NET_4_0 || MOBILE
+#if NET_4_0
else if (!AtEnd && Char.IsDigit (_src, _cur))
SetParseError (ParseError.Overflow);
return res;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
// Used by custom formats parsing
// digits_count = 0 for digits up to max_digits_count (optional), and other value to
// force a precise number of digits.
parse_error = error;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
bool CheckParseSuccess (bool tryParse)
#else
bool CheckParseSuccess (int hours, int minutes, int seconds, bool tryParse)
{
// We always report the first error, but for 2.0 we need to give a higher
// precence to per-element overflow (as opposed to int32 overflow).
-#if NET_4_0 || MOBILE
+#if NET_4_0
if (parse_error == ParseError.Overflow) {
#else
if (parse_error == ParseError.Overflow || hours > 23 || minutes > 59 || seconds > 59) {
return true;
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
// We are using a different parse approach in 4.0, due to some changes in the behaviour
// of the parse routines.
// The input string is documented as:
}
#endif
-#if NET_4_0 || MOBILE
+#if NET_4_0
public bool ExecuteWithFormat (string format, TimeSpanStyles style, bool tryParse, out TimeSpan result)
{
int days, hours, minutes, seconds;
}
#endif
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
enum FormatElementType
{
Days,
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.CompilerServices;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Collections;
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System.Runtime.Serialization;
using System.Runtime.InteropServices;
return v1.CompareTo (v2) <= 0;
}
-#if BOOSTRAP_NET_4_0 || NET_4_0 || MOBILE
+#if BOOSTRAP_NET_4_0 || NET_4_0
public static Version Parse (string input)
{
// Exactly the same as calling Version(string) .ctor
}
-#if NET_4_0 || MOBILE
+#if NET_4_0
[Test]
public void ClearMethod () {
StringBuilder sb = new StringBuilder ("Text");
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
//
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;