Click here to Skip to main content
15,896,496 members
Home / Discussions / C#
   

C#

 
GeneralRe: OutofMemoryException Pin
Ian Grech20-Apr-08 23:40
Ian Grech20-Apr-08 23:40 
GeneralRe: OutofMemoryException Pin
Ian Grech22-Apr-08 22:14
Ian Grech22-Apr-08 22:14 
AnswerRe: OutofMemoryException Pin
Ian Grech28-Apr-08 10:52
Ian Grech28-Apr-08 10:52 
GeneralRe: OutofMemoryException Pin
Scott Dorman20-Apr-08 4:42
professionalScott Dorman20-Apr-08 4:42 
GeneralRe: OutofMemoryException Pin
Ian Grech20-Apr-08 23:24
Ian Grech20-Apr-08 23:24 
GeneralRe: OutofMemoryException Pin
Jordanwb21-Apr-08 2:39
Jordanwb21-Apr-08 2:39 
GeneralRe: OutofMemoryException Pin
Scott Dorman22-Apr-08 16:58
professionalScott Dorman22-Apr-08 16:58 
GeneralSystem.CodeDom Problem. Pin
hdv21219-Apr-08 22:55
hdv21219-Apr-08 22:55 
hi i write this code to generate a simple source code with CodeDom :

CodeCompileUnit compileUnit = new CodeCompileUnit();<br />
            CodeNamespace ns = new CodeNamespace("MyNameSpace3");<br />
            ns.Imports.Add(new CodeNamespaceImport("System"));<br />
            ns.Imports.Add(new CodeNamespaceImport("System.Text"));<br />
            CodeTypeDeclaration ctd = new CodeTypeDeclaration("MyClass3");<br />
            ctd.IsClass = true;<br />
            ns.Types.Add(ctd);<br />
            compileUnit.Namespaces.Add(ns);<br />
            <br />
            CodeMemberField field1 = new CodeMemberField(typeof(string), "_message");<br />
            field1.Attributes = MemberAttributes.Private;            <br />
            ctd.Members.Add(field1);<br />
<br />
            CodeConstructor constructor1 = new CodeConstructor();<br />
            constructor1.Attributes = MemberAttributes.Public;<br />
            ctd.Members.Add(constructor1);


in above code, i have a private field (_message) in generated class code.
now i want to initialize and encapsulate that field with CodeDom, but how to do ?
thanks.
GeneralRe: System.CodeDom Problem. Pin
Rob Smiley20-Apr-08 0:46
Rob Smiley20-Apr-08 0:46 
GeneralUnable to fill certain fields inside the DOM of some websites! Pin
alon198019-Apr-08 21:50
alon198019-Apr-08 21:50 
GeneralRe: Unable to fill certain fields inside the DOM of some websites! Pin
alon198021-Apr-08 4:36
alon198021-Apr-08 4:36 
GeneralFinalizer implementation Pin
George_George19-Apr-08 21:20
George_George19-Apr-08 21:20 
GeneralRe: Finalizer implementation Pin
Scott Dorman20-Apr-08 4:57
professionalScott Dorman20-Apr-08 4:57 
GeneralRe: Finalizer implementation Pin
carbon_golem20-Apr-08 5:29
carbon_golem20-Apr-08 5:29 
GeneralRe: Finalizer implementation Pin
George_George20-Apr-08 17:38
George_George20-Apr-08 17:38 
GeneralRe: Finalizer implementation Pin
carbon_golem21-Apr-08 1:53
carbon_golem21-Apr-08 1:53 
GeneralRe: Finalizer implementation Pin
George_George21-Apr-08 2:07
George_George21-Apr-08 2:07 
GeneralRe: Finalizer implementation Pin
carbon_golem21-Apr-08 6:32
carbon_golem21-Apr-08 6:32 
GeneralRe: Finalizer implementation Pin
George_George21-Apr-08 21:49
George_George21-Apr-08 21:49 
GeneralRe: Finalizer implementation Pin
carbon_golem22-Apr-08 2:39
carbon_golem22-Apr-08 2:39 
GeneralRe: Finalizer implementation Pin
George_George22-Apr-08 3:04
George_George22-Apr-08 3:04 
GeneralRe: Finalizer implementation Pin
George_George20-Apr-08 19:02
George_George20-Apr-08 19:02 
GeneralRe: Finalizer implementation Pin
Scott Dorman22-Apr-08 17:13
professionalScott Dorman22-Apr-08 17:13 
GeneralRe: Finalizer implementation Pin
George_George22-Apr-08 17:20
George_George22-Apr-08 17:20 
GeneralRe: Finalizer implementation Pin
Scott Dorman22-Apr-08 17:36
professionalScott Dorman22-Apr-08 17:36 

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.