Click here to Skip to main content
15,173,910 members
Home / Discussions / C#
   

C#

 
GeneralRe: Fxcop Pin
#realJSOP21-Jun-11 10:36
mva#realJSOP21-Jun-11 10:36 
AnswerRe: Fxcop Pin
Eddy Vluggen21-Jun-11 12:56
professionalEddy Vluggen21-Jun-11 12:56 
GeneralRe: Fxcop Pin
RobCroll21-Jun-11 15:53
MemberRobCroll21-Jun-11 15:53 
AnswerRe: Fxcop Pin
#realJSOP21-Jun-11 10:38
mva#realJSOP21-Jun-11 10:38 
AnswerRe: Fxcop Pin
Eddy Vluggen21-Jun-11 12:58
professionalEddy Vluggen21-Jun-11 12:58 
GeneralRe: Fxcop Pin
Subin Mavunkal21-Jun-11 22:04
MemberSubin Mavunkal21-Jun-11 22:04 
AnswerRe: Fxcop Pin
Eddy Vluggen22-Jun-11 1:16
professionalEddy Vluggen22-Jun-11 1:16 
QuestionC# Working with C # classes from different namespaces Pin
lada_vyvojar20-Jun-11 21:17
Memberlada_vyvojar20-Jun-11 21:17 
Hello,
There namespace Company.Service01, which contains classes and interfaces.
There namespace Company.Service02, which contains classes and interfaces.

Both spaces have the same structure of, contain the same classes and interfaces.

I need to somehow ensure that I could work with class (for example: Eso9PortClient) from this namespace,
depending on the input parameters of the program.

It's possible there is some technique to it?
The goal is that I did not have to repeat the same code n times the number of namespaces.

Example:
file01.cs
namespace Company.Service0X
{
public interface Eso9Port {...}
public partial class FaultInfo {...}
public interface Eso9PortChannel {...}
public partial class Eso9PortClient {...}
}

file02.cs
namespace Company
{
class Program
{
static void Main (string [] args)
{
if (args [0] == "01")
{
MultiService MultiService m = new ();
m.CreateOrder ();
}
else if (args [0] == "02")
{
MultiService MultiService m = new ();
m.CreateOrder ();
}
else if (args [0] == "03")
{
MultiService MultiService m = new ();
m.CreateOrder ();
}
}
}

public class MultiService
{
public void CreateOrder ()
{
// Work with the instance Company.Service0X.Eso9PortClient
// depending on the parameter in class Program
Company.Service0X.Eso9PortClient Company.Service0X.Eso9PortClient x = new ();
string xx = x.orders
...
}
}
}

Thank you in advance for your reply
AnswerRe: C# Working with C # classes from different namespaces Pin
Vladimir Kniazkov20-Jun-11 21:38
professionalVladimir Kniazkov20-Jun-11 21:38 
AnswerRe: C# Working with C # classes from different namespaces Pin
BobJanova21-Jun-11 0:06
MemberBobJanova21-Jun-11 0:06 
QuestionHow to add ToolBar in Slide Pin
Anubhava Dimri20-Jun-11 19:02
MemberAnubhava Dimri20-Jun-11 19:02 
AnswerRe: How to add ToolBar in Slide Pin
ramzg21-Jun-11 0:54
Memberramzg21-Jun-11 0:54 
Question"Dictionary with int and Tuple" Or Separate Class? Pin
Matt U.20-Jun-11 13:49
MemberMatt U.20-Jun-11 13:49 
AnswerRe: "Dictionary with int and Tuple" Or Separate Class? Pin
PIEBALDconsult20-Jun-11 13:54
professionalPIEBALDconsult20-Jun-11 13:54 
GeneralRe: "Dictionary with int and Tuple" Or Separate Class? Pin
Matt U.20-Jun-11 13:57
MemberMatt U.20-Jun-11 13:57 
GeneralRe: "Dictionary with int and Tuple" Or Separate Class? Pin
PIEBALDconsult20-Jun-11 14:40
professionalPIEBALDconsult20-Jun-11 14:40 
GeneralRe: "Dictionary with int and Tuple" Or Separate Class? Pin
Matt U.20-Jun-11 14:44
MemberMatt U.20-Jun-11 14:44 
GeneralRe: "Dictionary with int and Tuple" Or Separate Class? Pin
PIEBALDconsult20-Jun-11 14:53
professionalPIEBALDconsult20-Jun-11 14:53 
GeneralRe: "Dictionary with int and Tuple" Or Separate Class? Pin
BobJanova21-Jun-11 0:00
MemberBobJanova21-Jun-11 0:00 
QuestionWindows Form control property issue Pin
venomation20-Jun-11 10:25
Membervenomation20-Jun-11 10:25 
AnswerRe: Windows Form control property issue Pin
Dave Kreskowiak20-Jun-11 12:29
mveDave Kreskowiak20-Jun-11 12:29 
GeneralRe: Windows Form control property issue Pin
venomation21-Jun-11 7:00
Membervenomation21-Jun-11 7:00 
GeneralRe: Windows Form control property issue Pin
mahendren29-Jun-11 3:15
Membermahendren29-Jun-11 3:15 
QuestionMonthCalendar Usage Pin
dipuks20-Jun-11 7:19
Memberdipuks20-Jun-11 7:19 
AnswerRe: MonthCalendar Usage Pin
PanchoM20-Jun-11 8:10
MemberPanchoM20-Jun-11 8:10 

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.