Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/src/ComponentModel/SilverlightAdditions.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/src/ComponentModel/SilverlightAdditions.cs90
1 files changed, 0 insertions, 90 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/src/ComponentModel/SilverlightAdditions.cs b/mcs/class/System.ComponentModel.Composition/src/ComponentModel/SilverlightAdditions.cs
deleted file mode 100644
index 75c1cf65c0c..00000000000
--- a/mcs/class/System.ComponentModel.Composition/src/ComponentModel/SilverlightAdditions.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Diagnostics.CodeAnalysis;
-
-namespace System
-{
- [Conditional("NOT_SILVERLIGHT")] // Trick so that the attribute is never actually applied
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Delegate, Inherited = false)]
- internal sealed class SerializableAttribute : Attribute
- {
- }
-}
-
-namespace System.ComponentModel
-{
- internal sealed class LocalizableAttribute : Attribute
- {
- [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "isLocalizable")]
- public LocalizableAttribute(bool isLocalizable)
- {
- }
- }
-}
-
-#if !CLR40
-namespace System.Collections.Generic
-{
- internal class HashSet<T> : IEnumerable<T>
- {
- private Dictionary<T, object> _set = new Dictionary<T, object>();
-
- public HashSet()
- {
- }
-
- public HashSet(IEnumerable<T> items)
- {
- foreach (T item in items)
- {
- Add(item);
- }
- }
-
- public bool Add(T item)
- {
- if (!this._set.ContainsKey(item))
- {
- this._set.Add(item, null);
- return true;
- }
- return false;
- }
-
- public void Clear()
- {
- this._set.Clear();
- }
-
- public bool Contains(T item)
- {
- return this._set.ContainsKey(item);
- }
-
- public bool Remove(T item)
- {
- if (this._set.ContainsKey(item))
- {
- this._set.Remove(item);
- return true;
- }
- return false;
- }
-
- public IEnumerator<T> GetEnumerator()
- {
- return this._set.Keys.GetEnumerator();
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetEnumerator();
- }
- }
-}
-#endif