mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just return false (which makes sense, as the custom errors *arent* enabled; ie they dont work. * HttpResponseStream.cs: you actually can write with len = 0 * AssemblyResourceLoader.cs: New file. New v2 handler. * Control.cs (GetWebResourceUrl): new v2 function * Page.cs (GetWebResourceUrl): ditto. make the JS we generate work with moz if the form is not a child of document. * WebResourceAttribute.cs: Added, new v2 attribute. svn path=/trunk/mcs/; revision=19631
28 lines
840 B
C#
28 lines
840 B
C#
//
|
|
// System.Web.UI.WebResourceAttribute
|
|
//
|
|
// Authors:
|
|
// Ben Maurer ([email protected])
|
|
//
|
|
// (C) 2003 Ben Maurer
|
|
//
|
|
#if NET_1_2
|
|
namespace System.Web.UI {
|
|
public sealed class WebResourceAttribute : Attribute {
|
|
public WebResourceAttribute (string webResource, string contentType) : this (webResource, contentType, false) {}
|
|
public WebResourceAttribute (string webResource, string contentType, bool performSubstitution)
|
|
{
|
|
this.webResource = webResource;
|
|
this.contentType = contentType;
|
|
this.performSubstitution = performSubstitution;
|
|
}
|
|
|
|
public string ContentType { get { return contentType; } }
|
|
public bool PerformSubstitution { get { return performSubstitution; } }
|
|
public string WebResource { get { return webResource; } }
|
|
|
|
bool performSubstitution;
|
|
string webResource, contentType;
|
|
}
|
|
}
|
|
#endif |