Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
AnswerRe: Static or non-static method performance and thread safety? Pin
Luc Pattyn21-Feb-11 4:45
sitebuilderLuc Pattyn21-Feb-11 4:45 
AnswerRe: Static or non-static method performance and thread safety? Pin
_Erik_21-Feb-11 4:00
_Erik_21-Feb-11 4:00 
Questionusing Microsoft.Office.Interop.Word + timeout Pin
Member 769046020-Feb-11 18:26
Member 769046020-Feb-11 18:26 
AnswerRe: using Microsoft.Office.Interop.Word + timeout Pin
Dalek Dave20-Feb-11 22:13
professionalDalek Dave20-Feb-11 22:13 
GeneralRe: using Microsoft.Office.Interop.Word + timeout Pin
Member 769046020-Feb-11 22:15
Member 769046020-Feb-11 22:15 
AnswerRe: using Microsoft.Office.Interop.Word + timeout Pin
Bernhard Hiller21-Feb-11 3:57
Bernhard Hiller21-Feb-11 3:57 
GeneralRe: using Microsoft.Office.Interop.Word + timeout Pin
Member 769046022-Feb-11 18:24
Member 769046022-Feb-11 18:24 
QuestionC# Object Pin
Ramkumar_S20-Feb-11 14:36
Ramkumar_S20-Feb-11 14:36 
Hi All,

I want to pass only the single object of

dtoSourece sObj = new dtoSourece(); for xml serialization.

but cannot access sObj.applicant.firstname

Please help me with this?




static void Main(string[] args)
{
dtoSourece sObj = new dtoSourece();
sObj.name = "ram";
sObj.age = "25";

jlvformApplicant s = new jlvformApplicant();
s.firstname = "india";

Console.WriteLine("india=" + sObj.applicant.firstname);//getting error


Console.ReadLine();
}

class dtoSourece
{
public string name { get; set; }
public string age { get; set; }


private jlvformApplicant applicantField;
public jlvformApplicant applicant
{
get
{
return this.applicantField;
}
set
{
this.applicantField = value;
}
}

}

public class jlvformApplicant
{

private string firstnameField;

private string lastnameField;



/// <remarks>


/// <remarks>
public string firstname
{
get
{
return this.firstnameField;
}
set
{
this.firstnameField = value;
}
}

/// <remarks>
public string lastname
{
get
{
return this.lastnameField;
}
set
{
this.lastnameField = value;
}
}


}
Ramkumar
("When you build bridges you can keep crossing them. ")

http://ramkumarishere.blogspot.com

AnswerRe: C# Object Pin
_Maxxx_20-Feb-11 15:04
professional_Maxxx_20-Feb-11 15:04 
AnswerRe: C# Object Pin
Henry Minute20-Feb-11 15:12
Henry Minute20-Feb-11 15:12 
GeneralRe: C# Object Pin
Ramkumar_S20-Feb-11 15:29
Ramkumar_S20-Feb-11 15:29 
GeneralRe: C# Object Pin
Henry Minute20-Feb-11 16:38
Henry Minute20-Feb-11 16:38 
AnswerRe: C# Object Pin
RobCroll20-Feb-11 19:37
RobCroll20-Feb-11 19:37 
GeneralRe: C# Object Pin
Henry Minute21-Feb-11 3:13
Henry Minute21-Feb-11 3:13 
GeneralRe: C# Object Pin
_Maxxx_22-Feb-11 0:15
professional_Maxxx_22-Feb-11 0:15 
GeneralRe: C# Object Pin
Henry Minute22-Feb-11 2:00
Henry Minute22-Feb-11 2:00 
QuestionDatagridview CellValueCHanged event is not firing Pin
NarVish20-Feb-11 6:27
NarVish20-Feb-11 6:27 
AnswerRe: Datagridview CellValueCHanged event is not firing Pin
Alan N20-Feb-11 11:43
Alan N20-Feb-11 11:43 
GeneralRe: Datagridview CellValueCHanged event is not firing Pin
NarVish20-Feb-11 21:56
NarVish20-Feb-11 21:56 
QuestionQuestion on CrystalReportViewer. [modified] Pin
priyamtheone20-Feb-11 2:54
priyamtheone20-Feb-11 2:54 
QuestionPython And/Or C#? Pin
Said Ali Jalali20-Feb-11 1:36
Said Ali Jalali20-Feb-11 1:36 
AnswerRe: Python And/Or C#? [modified] Pin
#realJSOP20-Feb-11 2:01
professional#realJSOP20-Feb-11 2:01 
AnswerRe: Python And/Or C#? Pin
Bernhard Hiller21-Feb-11 3:53
Bernhard Hiller21-Feb-11 3:53 
QuestionDefaulting and disabling WIA properties Pin
Etienne_12319-Feb-11 22:13
Etienne_12319-Feb-11 22:13 
AnswerRe: Defaulting and disabling WIA properties Pin
Dalek Dave20-Feb-11 0:34
professionalDalek Dave20-Feb-11 0:34 

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.