M
matthew_glen_evans
Hi there,
Quick one about interfaces in c#. It seems that it is illegal to
declare types within an interface.
I was quite used to doing this in VB.net where the interface can define
a
clients remoting interface and object model.
eg..
Public Interface ISelectionEngine
Function GetProductData(ByVal ChannelID As String) As XmlDocument
<Serializable()> _
Class ApplicantIncomeType
Public IncomeBasic As Decimal
Public IncomeBonus As Decimal
Public IncomeCommission As Decimal
Public IncomeOvertime As Decimal
Public StartDate As DateTime
Public EndDate As DateTime
End Class
<Serializable()> _
Enum ArrearPeriodConstants
ZeroTo6months
SevenTo12months
ThirteenTo24
End Enum
<Serializable()> _
Class NoProductFoundException
Inherits Exception
Public Sub New(ByVal sMessage As String)
MyBase.New(sMessage)
End Sub
Protected Sub New(ByVal info As SerializationInfo, ByVal
context As StreamingContext)
MyBase.New(info, context)
End Sub
End Class
End Interface
This will compile in vb.net...
I guess I could code the interface assembly in vb.net , but what is the
correct way to expose types across the remoting boundary in c#.
BTW this is a server activated object remoting configuration.
Thanks in advance,
Matthew
Quick one about interfaces in c#. It seems that it is illegal to
declare types within an interface.
I was quite used to doing this in VB.net where the interface can define
a
clients remoting interface and object model.
eg..
Public Interface ISelectionEngine
Function GetProductData(ByVal ChannelID As String) As XmlDocument
<Serializable()> _
Class ApplicantIncomeType
Public IncomeBasic As Decimal
Public IncomeBonus As Decimal
Public IncomeCommission As Decimal
Public IncomeOvertime As Decimal
Public StartDate As DateTime
Public EndDate As DateTime
End Class
<Serializable()> _
Enum ArrearPeriodConstants
ZeroTo6months
SevenTo12months
ThirteenTo24
End Enum
<Serializable()> _
Class NoProductFoundException
Inherits Exception
Public Sub New(ByVal sMessage As String)
MyBase.New(sMessage)
End Sub
Protected Sub New(ByVal info As SerializationInfo, ByVal
context As StreamingContext)
MyBase.New(info, context)
End Sub
End Class
End Interface
This will compile in vb.net...
I guess I could code the interface assembly in vb.net , but what is the
correct way to expose types across the remoting boundary in c#.
BTW this is a server activated object remoting configuration.
Thanks in advance,
Matthew