Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
QuestionRemoting with IPC Pin
ejuanpp29-Aug-06 3:34
ejuanpp29-Aug-06 3:34 
QuestionInt16 is not Int16 are you missing a cast? Pin
MY120129-Aug-06 3:27
MY120129-Aug-06 3:27 
AnswerRe: Int16 is not Int16 are you missing a cast? Pin
Dan Neely29-Aug-06 3:37
Dan Neely29-Aug-06 3:37 
GeneralRe: Int16 is not Int16 are you missing a cast? Pin
User 665829-Aug-06 3:52
User 665829-Aug-06 3:52 
AnswerRe: Int16 is not Int16 are you missing a cast? [modified] Pin
User 665829-Aug-06 3:46
User 665829-Aug-06 3:46 
GeneralRe: Int16 is not Int16 are you missing a cast? Pin
Dave Kreskowiak29-Aug-06 4:26
mveDave Kreskowiak29-Aug-06 4:26 
AnswerRe: Int16 is not Int16 are you missing a cast? Pin
Mike Dimmick29-Aug-06 6:46
Mike Dimmick29-Aug-06 6:46 
QuestionDeclare class as partial class in CodeDOM Pin
Ista29-Aug-06 3:23
Ista29-Aug-06 3:23 
I have this code:

Stream s = File.Open(@destinationDirectory + tableName + ".cs", FileMode.Create);
StreamWriter sw = new StreamWriter(s);
CodeGeneratorOptions cop = new CodeGeneratorOptions();

CodeNamespace cdm = new CodeNamespace(nameSpace);

CSharpCodeProvider cscProvider = new CSharpCodeProvider();
ICodeGenerator cscg = cscProvider.CreateGenerator(sw);
CodeTypeDeclaration ctd = new CodeTypeDeclaration(tableName);
ctd.IsClass = true;
ctd.TypeAttributes = System.Reflection.TypeAttributes.Public;

This works just fine for creating the class.

But, I want to declare this a partial class for this reason. I have a main code file with methods and what not. But, I am creating the properties for the class dynamically. So I want this class to be a partial class file that is never opened and can be replaced any time.

So I need to say "public partial class". Does anyone know how?

Thanks,
Nick

--------------------------------------------------------

1 line of code equals many bugs. So don't write any!!

My mad coder blog

AnswerRe: Declare class as partial class in CodeDOM Pin
Ista29-Aug-06 3:26
Ista29-Aug-06 3:26 
GeneralRe: Declare class as partial class in CodeDOM Pin
Marcos Accioly29-Aug-06 3:29
Marcos Accioly29-Aug-06 3:29 
QuestionUsing .NET's WMI to Identify Pen-Drive's Unique ID Pin
Marcos Accioly29-Aug-06 3:22
Marcos Accioly29-Aug-06 3:22 
AnswerRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
mav.northwind29-Aug-06 8:25
mav.northwind29-Aug-06 8:25 
GeneralRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
Marcos Accioly29-Aug-06 9:09
Marcos Accioly29-Aug-06 9:09 
GeneralRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
Dave Kreskowiak29-Aug-06 9:17
mveDave Kreskowiak29-Aug-06 9:17 
GeneralRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
mav.northwind29-Aug-06 10:24
mav.northwind29-Aug-06 10:24 
GeneralRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
Marcos Accioly29-Aug-06 10:29
Marcos Accioly29-Aug-06 10:29 
GeneralRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
mav.northwind29-Aug-06 10:35
mav.northwind29-Aug-06 10:35 
GeneralRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
Marcos Accioly30-Aug-06 3:48
Marcos Accioly30-Aug-06 3:48 
GeneralRe: Using .NET's WMI to Identify Pen-Drive's Unique ID Pin
mav.northwind1-Sep-06 4:11
mav.northwind1-Sep-06 4:11 
QuestionHow to pass parameters to MATLAB function (.dll file) Pin
Jr.Allam29-Aug-06 2:59
Jr.Allam29-Aug-06 2:59 
Questionhow to save response Pin
Yustme29-Aug-06 2:57
Yustme29-Aug-06 2:57 
AnswerRe: how to save response Pin
led mike29-Aug-06 4:39
led mike29-Aug-06 4:39 
AnswerRe: how to save response Pin
engsrini29-Aug-06 4:41
engsrini29-Aug-06 4:41 
QuestionSet System Default Sound device Pin
Rahul.RK29-Aug-06 2:30
Rahul.RK29-Aug-06 2:30 
AnswerRe: Set System Default Sound device Pin
Nader Elshehabi29-Aug-06 5:42
Nader Elshehabi29-Aug-06 5:42 

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.