You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
@@ -227,6 +227,22 @@ namespace System.Collections.Generic {
|
||||
_array[_size] = default(T); // Free memory quicker.
|
||||
return item;
|
||||
}
|
||||
|
||||
#if MONO
|
||||
public bool TryPop(out T result)
|
||||
{
|
||||
if (_size == 0)
|
||||
{
|
||||
result = default(T);
|
||||
return false;
|
||||
}
|
||||
|
||||
_version++;
|
||||
result = _array[--_size];
|
||||
_array[_size] = default(T); // Free memory quicker.
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Pushes an item to the top of the stack.
|
||||
//
|
||||
|
@@ -10,8 +10,7 @@ namespace System.ComponentModel {
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Security.Permissions;
|
||||
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Specifies the editor to use to change a property. This class cannot be inherited.</para>
|
||||
/// </devdoc>
|
||||
@@ -36,7 +35,7 @@ namespace System.ComponentModel {
|
||||
/// name of the editor.</para>
|
||||
/// </devdoc>
|
||||
public EditorAttribute(string typeName, string baseTypeName) {
|
||||
string temp = typeName.ToUpper(CultureInfo.InvariantCulture);
|
||||
string temp = typeName.ToUpperInvariant ();
|
||||
Debug.Assert(temp.IndexOf(".DLL") == -1, "Came across: " + typeName + " . Please remove the .dll extension");
|
||||
this.typeName = typeName;
|
||||
this.baseTypeName = baseTypeName;
|
||||
@@ -46,7 +45,7 @@ namespace System.ComponentModel {
|
||||
/// <para>Initializes a new instance of the <see cref='System.ComponentModel.EditorAttribute'/> class.</para>
|
||||
/// </devdoc>
|
||||
public EditorAttribute(string typeName, Type baseType) {
|
||||
string temp = typeName.ToUpper(CultureInfo.InvariantCulture);
|
||||
string temp = typeName.ToUpperInvariant ();
|
||||
Debug.Assert(temp.IndexOf(".DLL") == -1, "Came across: " + typeName + " . Please remove the .dll extension");
|
||||
this.typeName = typeName;
|
||||
this.baseTypeName = baseType.AssemblyQualifiedName;
|
||||
|
@@ -9,14 +9,18 @@ namespace System.ComponentModel {
|
||||
using System.Collections;
|
||||
using System.ComponentModel.Design;
|
||||
using System.Diagnostics;
|
||||
#if MONO_FEATURE_CAS
|
||||
using System.Security.Permissions;
|
||||
#endif
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>Provides
|
||||
/// a type converter to convert expandable objects to and from various
|
||||
/// other representations.</para>
|
||||
/// </devdoc>
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(SharedState = true)]
|
||||
#endif
|
||||
public class ExpandableObjectConverter : TypeConverter {
|
||||
|
||||
/// <devdoc>
|
||||
|
@@ -10,12 +10,16 @@ namespace System.ComponentModel {
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Runtime.Serialization;
|
||||
#if MONO_FEATURE_CAS
|
||||
using System.Security.Permissions;
|
||||
#endif
|
||||
|
||||
/// <devdoc>
|
||||
/// <para>The exception that is thrown when using invalid arguments that are enumerators.</para>
|
||||
/// </devdoc>
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(SharedState = true)]
|
||||
#endif
|
||||
[Serializable]
|
||||
public class InvalidEnumArgumentException : ArgumentException {
|
||||
|
||||
|
@@ -10,15 +10,19 @@ namespace System.ComponentModel.Design.Serialization {
|
||||
using System.Collections;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
#if MONO_FEATURE_CAS
|
||||
using System.Security.Permissions;
|
||||
#endif
|
||||
|
||||
/// <devdoc>
|
||||
/// EventArgs for the ResolveNameEventHandler. This event is used
|
||||
/// by the serialization process to match a name to an object
|
||||
/// instance.
|
||||
/// </devdoc>
|
||||
[HostProtection(SharedState = true)]
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(SharedState = true)]
|
||||
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name = "FullTrust")]
|
||||
#endif
|
||||
public sealed class InstanceDescriptor {
|
||||
private MemberInfo member;
|
||||
private ICollection arguments;
|
||||
|
Reference in New Issue
Block a user