diff options
author | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2003-07-25 21:35:43 +0400 |
---|---|---|
committer | Ravi Pratap M <ravi@mono-cvs.ximian.com> | 2003-07-25 21:35:43 +0400 |
commit | ef0081a565b3f524357dbf761fc2f23aa07d8cc1 (patch) | |
tree | 7e3aadd57fbdfe1e95c3bb66f1c463c43c82b379 /mcs/class/System.Web/System.Web.UI.HtmlControls | |
parent | 224fda63124bd4d150e3005c5fefa19d5e717de8 (diff) |
2003-07-25 Ravi Pratap <ravi@ximian.com>
* everywhere: Remove uses of direct invocation of the 'Invoke'
method on a delegate type - that is error cs1533 now flagged by
mcs.
svn path=/trunk/mcs/; revision=16681
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls')
8 files changed, 14 insertions, 10 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlAnchor.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlAnchor.cs index 010312f848c..76a813e95ee 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlAnchor.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlAnchor.cs @@ -27,7 +27,8 @@ namespace System.Web.UI.HtmlControls{ protected virtual void OnServerClick(EventArgs e){
EventHandler handler;
handler = (EventHandler) Events[EventServerClick];
- if(handler != null) handler.Invoke(this, e);
+ if (handler != null)
+ handler (this, e);
}
protected override void RenderAttributes(HtmlTextWriter writer){
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlButton.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlButton.cs index 1bc75655859..df990628fe5 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlButton.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlButton.cs @@ -29,9 +29,10 @@ namespace System.Web.UI.HtmlControls{ protected virtual void OnServerClick(EventArgs e){
EventHandler handler;
handler = (EventHandler) Events[EventServerClick];
- if(handler != null){
- handler.Invoke(this, e);
- }
+ if (handler != null)
+ handler (this, e);
+
+
}
protected override void RenderAttributes (HtmlTextWriter writer)
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs index 6940df113e2..ecd437a237e 100755 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputButton.cs @@ -56,7 +56,7 @@ namespace System.Web.UI.HtmlControls{ protected virtual void OnServerClick(EventArgs e){
EventHandler handler = (EventHandler) Events[EventServerClick];
if (handler != null){
- handler.Invoke(this, e);
+ handler (this, e);
}
}
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputCheckBox.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputCheckBox.cs index 26b7e204cd8..8224d0f6710 100755 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputCheckBox.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputCheckBox.cs @@ -44,7 +44,8 @@ namespace System.Web.UI.HtmlControls{ protected virtual void OnServerChange(EventArgs e){
EventHandler handler = (EventHandler) Events[EventServerChange];
- if (handler != null) handler.Invoke(this, e);
+ if (handler != null)
+ handler (this, e);
}
protected override void OnPreRender(EventArgs e){
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputHidden.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputHidden.cs index 16229466344..577d3c0f7e5 100755 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputHidden.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputHidden.cs @@ -38,7 +38,8 @@ namespace System.Web.UI.HtmlControls{ protected virtual void OnServerChange (EventArgs e)
{
EventHandler handler = (EventHandler) Events [EventServerChange];
- if (handler != null) handler.Invoke (this, e);
+ if (handler != null)
+ handler (this, e);
}
protected override void OnPreRender(EventArgs e){
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputRadioButton.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputRadioButton.cs index ed5b6564d38..68ebfde053f 100755 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputRadioButton.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlInputRadioButton.cs @@ -31,7 +31,7 @@ namespace System.Web.UI.HtmlControls{ protected virtual void OnServerChange(EventArgs e){
EventHandler handler = (EventHandler) Events[EventServerChange];
if (handler != null){
- handler.Invoke(this, e);
+ handler (this, e);
}
}
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs index 0e30d425f02..eb0bd52bc50 100755 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs @@ -121,7 +121,7 @@ namespace System.Web.UI.HtmlControls{ protected virtual void OnServerChange(EventArgs e){
EventHandler handler = (EventHandler) Events[EventServerChange];
if (handler != null)
- handler.Invoke(this,e);
+ handler (this,e);
}
protected override void RenderAttributes(HtmlTextWriter writer){
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs index 87a46774449..382fc1a559b 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs @@ -92,7 +92,7 @@ namespace System.Web.UI.HtmlControls{ EventHandler handler;
handler = (EventHandler) Events[EventServerChange];
if(handler != null){
- handler.Invoke(this, e);
+ handler (this, e);
}
}
|