33#if CompactFramework || WindowsCE || PocketPC || SILVERLIGHT
36 AttributeTargets.Delegate |
37 AttributeTargets.Enum |
38 AttributeTargets.Struct |
39 AttributeTargets.Class,
41 public sealed
class SerializableAttribute : Attribute
44#if CompactFramework || WindowsCE || PocketPC
45 namespace Runtime.Serialization
49 public class SerializationException : SystemException
51 public SerializationException() { }
52 public SerializationException(
string message) : base(message) { }
53 public SerializationException(
string message, Exception innerException) : base(message, innerException) { }
57#if CompactFramework || WindowsCE || PocketPC || XBOX360 || SILVERLIGHT
59 [AttributeUsage(AttributeTargets.Field, Inherited =
false)]
60 public sealed
class NonSerializedAttribute : Attribute
62 namespace Xml.Serialization
64 [AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property)]
65 public sealed
class XmlIgnoreAttribute : Attribute
67 [AttributeUsage(AttributeTargets.ReturnValue | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property)]
68 public class XmlAttributeAttribute : Attribute
70 public XmlAttributeAttribute() { }
71 public XmlAttributeAttribute(
string attributeName) { }
72 public XmlAttributeAttribute(Type type) { }
73 public XmlAttributeAttribute(
string attributeName, Type type) { }
76 namespace ComponentModel
78 [AttributeUsage(AttributeTargets.All)]
79 public sealed
class DescriptionAttribute : Attribute
81 public DescriptionAttribute() { }
82 public DescriptionAttribute(
string description) { }
85 namespace Runtime.Serialization
88 public interface IDeserializationCallback
90 void OnDeserialization(
object sender);
97 public interface ICloneable
102 public static class ExtensionMethods
104 public static int RemoveAll<T>(
this System.Collections.Generic.List<T>
self, Predicate<T> match)
108 throw new ArgumentNullException(
"match");
111 while ((index <
self.Count) && !match(
self[index]))
115 if (index >=
self.Count)
119 int index2 = index + 1;
120 while (index2 <
self.Count)
122 while ((index2 <
self.Count) && match(
self[index2]))
126 if (index2 <
self.Count)
128 self[index++] =
self[index2++];
131 int result =
self.Count - index;
132 self.RemoveRange(index, result);