Click here to Skip to main content
15,894,460 members
Home / Discussions / C#
   

C#

 
GeneralRe: CRC check Pin
Vega023-Jul-04 4:39
Vega023-Jul-04 4:39 
Generalusing System.Runtime.Serialization.Formatters.Soap; Pin
ABean2-Jul-04 23:49
ABean2-Jul-04 23:49 
GeneralRe: using System.Runtime.Serialization.Formatters.Soap; Pin
Colin Angus Mackay3-Jul-04 0:38
Colin Angus Mackay3-Jul-04 0:38 
GeneralTextBox at run time Pin
saud_a_k2-Jul-04 22:52
saud_a_k2-Jul-04 22:52 
GeneralRe: TextBox at run time Pin
Stefan Troschuetz3-Jul-04 13:16
Stefan Troschuetz3-Jul-04 13:16 
GeneralRe: TextBox at run time Pin
saud_a_k5-Jul-04 2:18
saud_a_k5-Jul-04 2:18 
GeneralRe: TextBox at run time Pin
Stefan Troschuetz5-Jul-04 2:53
Stefan Troschuetz5-Jul-04 2:53 
GeneralDesign Issue Pin
hatim_ali2-Jul-04 18:14
hatim_ali2-Jul-04 18:14 
Hi,

I've subclassed two classes inside classA. Theses subclasses are derived from classA. There are some virtual functions in classA with their implementation defined in those subclasses. Client can only see classA. Instances of classA will be created by a class factory. On basis of parameters passed to class factory, the factory creates new objects of subclasses and returns them to client. Following snippet demonstrates the idea.

public class classA
{
/* some non-virtual functions with implementation defined */
/* some virtual functions with implementation defined in subclasses */

internal class subclass1 : classA
{
/* implementation of virtual functions declared in class A */
}

internal class subclass2 : classA
{
/* implementation of virtual functions declared in class A */
}
}

1) I want to run subclass1 objects into COM+ transaction. Is it possible because client never sees subclass1 although it uses subclass1. If possible how ??

2) Is it a good practice to do things this way. The idea behind was to provide client smplicity of using one class while acheiving the logical seperation at the backend for developer's ease.

Thanks in advance,

Regards,
Hatim Ali.
Generaladvantage of interface/abstract class Pin
xcavin2-Jul-04 18:12
xcavin2-Jul-04 18:12 
GeneralRe: advantage of interface/abstract class Pin
Ray Cassick2-Jul-04 18:21
Ray Cassick2-Jul-04 18:21 
GeneralRe: advantage of interface/abstract class Pin
xcavin2-Jul-04 23:34
xcavin2-Jul-04 23:34 
GeneralRe: advantage of interface/abstract class Pin
Vega023-Jul-04 4:30
Vega023-Jul-04 4:30 
GeneralDataGrid & ArrayList Pin
bmasephol2-Jul-04 11:03
bmasephol2-Jul-04 11:03 
GeneralDatagrid Navigation Pin
IamADotNetGuy2-Jul-04 7:30
IamADotNetGuy2-Jul-04 7:30 
GeneralRe: Datagrid Navigation Pin
saud_a_k2-Jul-04 20:07
saud_a_k2-Jul-04 20:07 
GeneralQuestion on events and local variables Pin
Flack2-Jul-04 7:14
Flack2-Jul-04 7:14 
GeneralRe: Question on events and local variables Pin
Karl 20002-Jul-04 9:10
Karl 20002-Jul-04 9:10 
GeneralSaving BMP/JPEG from Stream Pin
Emiliano2-Jul-04 6:53
Emiliano2-Jul-04 6:53 
GeneralRe: Saving BMP/JPEG from Stream Pin
Gimpy19832-Jul-04 6:58
Gimpy19832-Jul-04 6:58 
GeneralRe: Saving BMP/JPEG from Stream Pin
Emiliano2-Jul-04 8:37
Emiliano2-Jul-04 8:37 
GeneralRe: Saving BMP/JPEG from Stream Pin
Gimpy19834-Jul-04 8:28
Gimpy19834-Jul-04 8:28 
GeneralDatagrid column header Pin
Member 5877032-Jul-04 6:33
Member 5877032-Jul-04 6:33 
Generalenum question Pin
Mikke_x2-Jul-04 6:27
Mikke_x2-Jul-04 6:27 
GeneralRe: enum question Pin
Werdna2-Jul-04 12:11
Werdna2-Jul-04 12:11 
GeneralRe: enum question Pin
Mikke_x2-Jul-04 12:49
Mikke_x2-Jul-04 12:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.