mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
2008-09-23 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: do not use LazyDictionary as enum serializer anymore. * ProfileService.cs: do not use LazyDictionary as ProfileService serializer anymore. * RestHandler.cs: do not use LazyDictionary as the Exception or NameValueCollection serializer anymore. 2008-09-23 Marek Habersack <[email protected]> * JavaScriptSerializer.cs: removed the LazyDictionary class, it's not needed anymore. svn path=/trunk/mcs/; revision=113832
This commit is contained in:
1 parent
0594b0199e
commit
1905082013
6 files changed
+77
-162
No files matched your search
+1
-91
@@ -44,97 +44,7 @@ namespace System.Web.Script.Serialization
|
||||
public class JavaScriptSerializer
|
||||
{
|
||||
internal const string SerializedTypeNameKey = "__type";
|
||||
|
||||
internal abstract class LazyDictionary : IDictionary<string, object>
|
||||
{
|
||||
#region IDictionary<string,object> Members
|
||||
|
||||
void IDictionary<string, object>.Add (string key, object value) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
bool IDictionary<string, object>.ContainsKey (string key) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
ICollection<string> IDictionary<string, object>.Keys {
|
||||
get { throw new NotSupportedException (); }
|
||||
}
|
||||
|
||||
bool IDictionary<string, object>.Remove (string key) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
bool IDictionary<string, object>.TryGetValue (string key, out object value) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
ICollection<object> IDictionary<string, object>.Values {
|
||||
get { throw new NotSupportedException (); }
|
||||
}
|
||||
|
||||
object IDictionary<string, object>.this [string key] {
|
||||
get {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
set {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ICollection<KeyValuePair<string,object>> Members
|
||||
|
||||
void ICollection<KeyValuePair<string, object>>.Add (KeyValuePair<string, object> item) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
void ICollection<KeyValuePair<string, object>>.Clear () {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
bool ICollection<KeyValuePair<string, object>>.Contains (KeyValuePair<string, object> item) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
void ICollection<KeyValuePair<string, object>>.CopyTo (KeyValuePair<string, object> [] array, int arrayIndex) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
int ICollection<KeyValuePair<string, object>>.Count {
|
||||
get { throw new NotSupportedException (); }
|
||||
}
|
||||
|
||||
bool ICollection<KeyValuePair<string, object>>.IsReadOnly {
|
||||
get { throw new NotSupportedException (); }
|
||||
}
|
||||
|
||||
bool ICollection<KeyValuePair<string, object>>.Remove (KeyValuePair<string, object> item) {
|
||||
throw new NotSupportedException ();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IEnumerable<KeyValuePair<string,object>> Members
|
||||
|
||||
IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator () {
|
||||
return GetEnumerator ();
|
||||
}
|
||||
|
||||
protected abstract IEnumerator<KeyValuePair<string, object>> GetEnumerator ();
|
||||
|
||||
#endregion
|
||||
|
||||
#region IEnumerable Members
|
||||
|
||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator () {
|
||||
return ((IEnumerable<KeyValuePair<string, object>>) this).GetEnumerator ();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
List<IEnumerable<JavaScriptConverter>> _converterList;
|
||||
int _maxJsonLength;
|
||||
int _recursionLimit;
|
||||
|
||||
Reference in new issue
Block a user