Click here to Skip to main content
16,015,481 members
Home / Discussions / C#
   

C#

 
Questionmy HTTP request handler code correct? Pin
George_George25-Apr-08 0:02
George_George25-Apr-08 0:02 
AnswerRe: my HTTP request handler code correct? Pin
Spacix One25-Apr-08 2:22
Spacix One25-Apr-08 2:22 
GeneralRe: my HTTP request handler code correct? Pin
George_George25-Apr-08 2:50
George_George25-Apr-08 2:50 
GeneralRe: my HTTP request handler code correct? Pin
Spacix One25-Apr-08 3:28
Spacix One25-Apr-08 3:28 
GeneralRe: my HTTP request handler code correct? Pin
George_George25-Apr-08 4:00
George_George25-Apr-08 4:00 
GeneralRe: my HTTP request handler code correct? Pin
Spacix One25-Apr-08 5:34
Spacix One25-Apr-08 5:34 
GeneralRe: my HTTP request handler code correct? Pin
George_George25-Apr-08 21:34
George_George25-Apr-08 21:34 
QuestionHow to Assign value to CodeMemberField object in CodeDom ? Pin
hdv21224-Apr-08 23:30
hdv21224-Apr-08 23:30 
hi i write this code to define a CodeConstructor object, it has a parameter named "connectionString" :
CodeConstructor constructor1 = new CodeConstructor();<br />
constructor1.Attributes = MemberAttributes.Public;            <br />
ctd.Members.Add(constructor1);<br />
<br />
// create private field                <br />
string fieldName = this.ToLowerFirstChar("connectionString");<br />
CodeMemberField field = new CodeMemberField(typeof(string), fieldName);<br />
field.Attributes = MemberAttributes.Private;<br />
ctd.Members.Add(field);<br />
<br />
CodeParameterDeclarationExpression p1 = new CodeParameterDeclarationExpression(field.Type, fieldName);<br />
constructor1.Parameters.Add(p1);


now, in body of constructor1, i want to assign value of p1 to field object, i write this code, but i don't know how to assign p1.value to field object :

CodeAssignStatement fieldAssignment = new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), fieldName), new CodePrimitiveExpression(what do i write in this place ?));<br />
constructor1.Statements.Add(fieldAssignment);

thanks
Questionextracting domain name from email.. Pin
Adoremi24-Apr-08 23:13
Adoremi24-Apr-08 23:13 
GeneralRe: extracting domain name from email.. Pin
phannon8624-Apr-08 23:30
professionalphannon8624-Apr-08 23:30 
GeneralRe: extracting domain name from email.. Pin
Giorgi Dalakishvili24-Apr-08 23:37
mentorGiorgi Dalakishvili24-Apr-08 23:37 
AnswerRe: extracting domain name from email.. [modified] Pin
Spacix One25-Apr-08 2:57
Spacix One25-Apr-08 2:57 
GeneralRe: extracting domain name from email.. Pin
Mike Dimmick25-Apr-08 3:24
Mike Dimmick25-Apr-08 3:24 
GeneralRe: extracting domain name from email.. Pin
Spacix One25-Apr-08 3:36
Spacix One25-Apr-08 3:36 
GeneralRe: extracting domain name from email.. Pin
Adoremi26-Apr-08 7:06
Adoremi26-Apr-08 7:06 
QuestionHow do I force the printer to print in grayscale mode from C#? Pin
Faysal24-Apr-08 22:05
Faysal24-Apr-08 22:05 
AnswerRe: How do I force the printer to print in grayscale mode from C#? Pin
Mircea Puiu25-Apr-08 1:31
Mircea Puiu25-Apr-08 1:31 
Generalcreate a new file with exclusive owner mode Pin
George_George24-Apr-08 21:18
George_George24-Apr-08 21:18 
GeneralRe: create a new file with exclusive owner mode Pin
Ed.Poore24-Apr-08 21:19
Ed.Poore24-Apr-08 21:19 
GeneralRe: create a new file with exclusive owner mode Pin
George_George24-Apr-08 21:30
George_George24-Apr-08 21:30 
GeneralRe: create a new file with exclusive owner mode Pin
Vasudevan Deepak Kumar24-Apr-08 21:22
Vasudevan Deepak Kumar24-Apr-08 21:22 
GeneralRe: create a new file with exclusive owner mode Pin
George_George24-Apr-08 21:30
George_George24-Apr-08 21:30 
GeneralRe: create a new file with exclusive owner mode Pin
Vasudevan Deepak Kumar25-Apr-08 2:18
Vasudevan Deepak Kumar25-Apr-08 2:18 
GeneralRe: create a new file with exclusive owner mode Pin
George_George25-Apr-08 2:46
George_George25-Apr-08 2:46 
GeneraldateTimePicker in Datagrid Pin
Denver Thomas24-Apr-08 20:45
Denver Thomas24-Apr-08 20:45 

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.