mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* System.Web/HttpContext.cs: (Session): return null instead of throwing an exception. * System.Web/HttpRequest.cs: (HttpMethod): return RequestType if not set. (GetRawContent): return QueryString if we don't have a HttpWorkerRequest. * System.Web/HttpUtility.cs: fixed Decode and Encode. * System.Web.UI/Control.cs: reimplemented FindControls. * System.Web.UI/Page.cs: (.ctor): set the page for this control. (IsPostBack): return valid value. (DeterminePostBackMode): finished. (OnFormRender): render __VIEWSTATE (uses GetTypeHashCode()). (ProcessPostData): implemented. Raises change and postback events. (ProcessRequest): changed to support reuse of the instance. (RegisterRequiresPostBack): implemented. * System.Web.UI/ValidatorCollection.cs: implemented all methods. * System.Web.UI.WebControls/Button.cs: (.ctor): fixed to render the correct tag. (IPostBAckEventHandler.RaisePostBackEvent): fixed. svn path=/trunk/mcs/; revision=5499
70 lines
1.2 KiB
C#
Executable File
70 lines
1.2 KiB
C#
Executable File
//
|
|
// System.Web.UI.ValidatorCollection.cs
|
|
//
|
|
// Authors:
|
|
// Duncan Mak ([email protected])
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc. (http://www.ximian.com)
|
|
|
|
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Web.UI {
|
|
|
|
public sealed class ValidatorCollection : ICollection, IEnumerable
|
|
{
|
|
private ArrayList _validators;
|
|
|
|
public ValidatorCollection ()
|
|
{
|
|
_validators = new ArrayList ();
|
|
}
|
|
|
|
public int Count {
|
|
get { return _validators.Count; }
|
|
}
|
|
|
|
public bool IsReadOnly {
|
|
get { return _validators.IsReadOnly; }
|
|
}
|
|
|
|
public bool IsSynchronized {
|
|
get { return _validators.IsSynchronized; }
|
|
}
|
|
|
|
public IValidator this [int index] {
|
|
get { return (IValidator) _validators [index]; }
|
|
}
|
|
|
|
public object SyncRoot {
|
|
get { return this; }
|
|
}
|
|
|
|
public void Add (IValidator validator)
|
|
{
|
|
_validators.Add (validator);
|
|
}
|
|
|
|
public bool Contains (IValidator validator)
|
|
{
|
|
return _validators.Contains (validator);
|
|
}
|
|
|
|
public void CopyTo (Array array, int index)
|
|
{
|
|
_validators.CopyTo (array, index);
|
|
}
|
|
|
|
public IEnumerator GetEnumerator ()
|
|
{
|
|
return _validators.GetEnumerator ();
|
|
}
|
|
|
|
public void Remove (IValidator validator)
|
|
{
|
|
_validators.Remove (validator);
|
|
}
|
|
}
|
|
}
|