Author: kostat
Date: 2007-04-22 06:17:39 -0400 (Sun, 22 Apr 2007)
New Revision: 76052
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleTypeStubInfo.cs
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs
Log:
refactoring ensuring uncomplete classes never instantiated and derived classes
override relevant methods
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleTypeStubInfo.cs
===================================================================
---
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleTypeStubInfo.cs
2007-04-22 10:00:00 UTC (rev 76051)
+++
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleTypeStubInfo.cs
2007-04-22 10:17:39 UTC (rev 76052)
@@ -45,7 +45,7 @@
ReturnWriter
}
- internal class HttpSimpleMethodStubInfo : MethodStubInfo
+ internal abstract class HttpSimpleMethodStubInfo : MethodStubInfo
{
public MimeFormatterInfo ParameterWriterType;
public MimeFormatterInfo ParameterReaderType;
@@ -95,7 +95,7 @@
public object Initializer;
}
- internal class HttpSimpleTypeStubInfo : TypeStubInfo
+ internal abstract class HttpSimpleTypeStubInfo : TypeStubInfo
{
public HttpSimpleTypeStubInfo (ServerType logicalTypeInfo):
base (logicalTypeInfo)
{
@@ -143,10 +143,5 @@
}
list.Add (method);
}
-
- protected override MethodStubInfo CreateMethodStubInfo
(TypeStubInfo typeInfo, LogicalMethodInfo methodInfo, bool isClientProxy)
- {
- return new HttpSimpleMethodStubInfo (typeInfo,
methodInfo);
- }
}
}
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs
===================================================================
---
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs
2007-04-22 10:00:00 UTC (rev 76051)
+++
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs
2007-04-22 10:17:39 UTC (rev 76052)
@@ -80,7 +80,7 @@
// Holds the metadata loaded from the type stub, as well as
// the metadata for all the methods in the type
//
- internal class TypeStubInfo
+ internal abstract class TypeStubInfo
{
Hashtable name_to_method = new Hashtable ();
MethodStubInfo[] methods;
@@ -207,10 +207,7 @@
methods = (MethodStubInfo[]) metStubs.ToArray (typeof
(MethodStubInfo));
}
- protected virtual MethodStubInfo CreateMethodStubInfo
(TypeStubInfo typeInfo, LogicalMethodInfo methodInfo, bool isClientProxy)
- {
- return new MethodStubInfo (typeInfo, methodInfo);
- }
+ protected abstract MethodStubInfo CreateMethodStubInfo
(TypeStubInfo typeInfo, LogicalMethodInfo methodInfo, bool isClientProxy);
public MethodStubInfo GetMethod (string name)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches