You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@ -6,11 +6,6 @@ namespace System {
|
||||
|
||||
public partial class AppDomain
|
||||
{
|
||||
internal String GetTargetFrameworkName()
|
||||
{
|
||||
return ".NETFramework,Version=v4.5";
|
||||
}
|
||||
|
||||
internal static bool IsAppXModel ()
|
||||
{
|
||||
return false;
|
||||
|
8
mcs/class/corlib/ReferenceSources/BinaryCompatibility.cs
Normal file
8
mcs/class/corlib/ReferenceSources/BinaryCompatibility.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace System.Runtime.Versioning
|
||||
{
|
||||
static class BinaryCompatibility
|
||||
{
|
||||
public static readonly bool TargetsAtLeast_Desktop_V4_5 = true;
|
||||
public static readonly bool TargetsAtLeast_Desktop_V4_5_1 = true;
|
||||
}
|
||||
}
|
@ -30,7 +30,7 @@ namespace System
|
||||
{
|
||||
static class CompatibilitySwitches
|
||||
{
|
||||
public const bool IsAppEarlierThanSilverlight4 = false;
|
||||
public const bool IsAppEarlierThanWindowsPhone8 = false;
|
||||
public static readonly bool IsAppEarlierThanSilverlight4 = false;
|
||||
public static readonly bool IsAppEarlierThanWindowsPhone8 = false;
|
||||
}
|
||||
}
|
@ -6,5 +6,10 @@ namespace System.IO
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool HasIllegalCharacters (string path, bool checkAdditional)
|
||||
{
|
||||
return path.IndexOfAny (Path.InvalidPathChars) != -1;
|
||||
}
|
||||
}
|
||||
}
|
@ -140,15 +140,15 @@ namespace System
|
||||
|
||||
internal Object CreateInstanceSlow(bool publicOnly, bool skipCheckThis, bool fillCache, ref StackCrawlMark stackMark)
|
||||
{
|
||||
bool bNeedSecurityCheck = true;
|
||||
bool bCanBeCached = false;
|
||||
bool bSecurityCheckOff = false;
|
||||
//bool bNeedSecurityCheck = true;
|
||||
//bool bCanBeCached = false;
|
||||
//bool bSecurityCheckOff = false;
|
||||
|
||||
if (!skipCheckThis)
|
||||
CreateInstanceCheckThis();
|
||||
|
||||
if (!fillCache)
|
||||
bSecurityCheckOff = true;
|
||||
//if (!fillCache)
|
||||
// bSecurityCheckOff = true;
|
||||
|
||||
return CreateInstanceMono (!publicOnly);
|
||||
}
|
||||
|
@ -345,15 +345,13 @@ namespace System
|
||||
|
||||
unsafe String ReplaceInternal (char oldChar, char newChar)
|
||||
{
|
||||
#if !BOOTSTRAP_BASIC
|
||||
if (this.m_stringLength == 0 || oldChar == newChar)
|
||||
return this;
|
||||
#endif
|
||||
|
||||
int start_pos = IndexOfUnchecked (oldChar, 0, this.m_stringLength);
|
||||
#if !BOOTSTRAP_BASIC
|
||||
if (start_pos == -1)
|
||||
return this;
|
||||
#endif
|
||||
|
||||
if (start_pos < 4)
|
||||
start_pos = 0;
|
||||
|
||||
@ -391,11 +389,8 @@ namespace System
|
||||
throw new ArgumentException ("oldValue is the empty string.");
|
||||
|
||||
if (this.Length == 0)
|
||||
#if BOOTSTRAP_BASIC
|
||||
throw new NotImplementedException ("BOOTSTRAP_BASIC");
|
||||
#else
|
||||
return this;
|
||||
#endif
|
||||
|
||||
if (newValue == null)
|
||||
newValue = Empty;
|
||||
|
||||
@ -405,11 +400,7 @@ namespace System
|
||||
private unsafe String ReplaceUnchecked (String oldValue, String newValue)
|
||||
{
|
||||
if (oldValue.m_stringLength > m_stringLength)
|
||||
#if BOOTSTRAP_BASIC
|
||||
throw new NotImplementedException ("BOOTSTRAP_BASIC");
|
||||
#else
|
||||
return this;
|
||||
#endif
|
||||
|
||||
if (oldValue.m_stringLength == 1 && newValue.m_stringLength == 1) {
|
||||
return Replace (oldValue[0], newValue[0]);
|
||||
@ -434,11 +425,8 @@ namespace System
|
||||
i = found + oldValue.m_stringLength;
|
||||
}
|
||||
if (count == 0)
|
||||
#if BOOTSTRAP_BASIC
|
||||
throw new NotImplementedException ("BOOTSTRAP_BASIC");
|
||||
#else
|
||||
return this;
|
||||
#endif
|
||||
return this;
|
||||
|
||||
int nlen = 0;
|
||||
checked {
|
||||
try {
|
||||
@ -488,11 +476,8 @@ namespace System
|
||||
if (totalWidth < 0)
|
||||
throw new ArgumentOutOfRangeException ("totalWidth", "Non-negative number required");
|
||||
if (totalWidth <= m_stringLength)
|
||||
#if BOOTSTRAP_BASIC
|
||||
throw new NotImplementedException ("BOOTSTRAP_BASIC");
|
||||
#else
|
||||
return this;
|
||||
#endif
|
||||
|
||||
string result = FastAllocateString (totalWidth);
|
||||
|
||||
fixed (char *dest = result, src = &m_firstChar) {
|
||||
@ -518,11 +503,7 @@ namespace System
|
||||
|
||||
internal bool StartsWithOrdinalUnchecked (String value)
|
||||
{
|
||||
#if BOOTSTRAP_BASIC
|
||||
throw new NotImplementedException ("BOOTSTRAP_BASIC");
|
||||
#else
|
||||
return m_stringLength >= value.m_stringLength && CompareOrdinalUnchecked (this, 0, value.m_stringLength, value, 0, value.m_stringLength) == 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
internal unsafe bool IsAscii ()
|
||||
|
@ -102,6 +102,12 @@ namespace System
|
||||
return UnderlyingSystemType;
|
||||
}
|
||||
|
||||
// Called from the runtime to return the corresponding finished Type object
|
||||
internal virtual Type RuntimeResolve ()
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
internal virtual bool IsUserType {
|
||||
get {
|
||||
return true;
|
||||
|
@ -1,14 +0,0 @@
|
||||
namespace System.Reflection.Emit
|
||||
{
|
||||
abstract class TypeBuilderInstantiation : TypeInfo
|
||||
{
|
||||
internal static Type MakeGenericType (Type type, Type[] typeArguments)
|
||||
{
|
||||
#if FULL_AOT_RUNTIME
|
||||
throw new NotSupportedException ("User types are not supported under full aot");
|
||||
#else
|
||||
return new MonoGenericClass (type, typeArguments);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.Win32
|
||||
{
|
||||
@ -71,5 +73,11 @@ namespace Microsoft.Win32
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
internal class WIN32_FIND_DATA
|
||||
{
|
||||
internal int dwFileAttributes = 0;
|
||||
internal String cFileName = null;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user