Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
GeneralRe: RS232 interfacing help Pin
OriginalGriff21-Feb-11 21:51
mveOriginalGriff21-Feb-11 21:51 
Questionbuild a Dynamic code - c# 4.0 Pin
arkiboys20-Feb-11 23:17
arkiboys20-Feb-11 23:17 
AnswerRe: build a Dynamic code - c# 4.0 Pin
Thomas Krojer20-Feb-11 23:34
Thomas Krojer20-Feb-11 23:34 
AnswerRe: build a Dynamic code - c# 4.0 Pin
dasblinkenlight20-Feb-11 23:37
dasblinkenlight20-Feb-11 23:37 
AnswerRe: build a Dynamic code - c# 4.0 Pin
RobCroll21-Feb-11 2:40
RobCroll21-Feb-11 2:40 
GeneralRe: build a Dynamic code - c# 4.0 Pin
arkiboys21-Feb-11 4:42
arkiboys21-Feb-11 4:42 
QuestionStatic or non-static method performance and thread safety? Pin
Chesnokov Yuriy20-Feb-11 21:54
professionalChesnokov Yuriy20-Feb-11 21:54 
AnswerRe: Static or non-static method performance and thread safety? Pin
dasblinkenlight20-Feb-11 23:50
dasblinkenlight20-Feb-11 23:50 
QuestionRe: Static or non-static method performance and thread safety? Pin
Chesnokov Yuriy21-Feb-11 0:53
professionalChesnokov Yuriy21-Feb-11 0:53 
AnswerRe: Static or non-static method performance and thread safety? Pin
dasblinkenlight21-Feb-11 4:30
dasblinkenlight21-Feb-11 4:30 
AnswerRe: Static or non-static method performance and thread safety? Pin
_Erik_21-Feb-11 3:15
_Erik_21-Feb-11 3:15 
QuestionRe: Static or non-static method performance and thread safety? Pin
Chesnokov Yuriy21-Feb-11 3:44
professionalChesnokov Yuriy21-Feb-11 3:44 
AnswerRe: Static or non-static method performance and thread safety? Pin
Luc Pattyn21-Feb-11 3:53
sitebuilderLuc Pattyn21-Feb-11 3:53 
QuestionRe: Static or non-static method performance and thread safety? Pin
Chesnokov Yuriy21-Feb-11 4:26
professionalChesnokov Yuriy21-Feb-11 4:26 
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 
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 
You are not setting the applicant property of your sObj which is why I suspect that you are getting the error.

BTW: You will get more help, more quickly, if you:

a) put your code inside <pre> your code goes here </pre> tags. Doing that makes it easier to read.
b) give full information about the problem you are having. e.g. the exact wording of the exception.

In your case I suspect that the error is a 'null reference exception' but I can't be sure.

My suggestion to resolve your problem is below.
C#
static void Main(string[] args)
{
    dtoSourece sObj = new dtoSourece();
    sObj.name = "ram";
    sObj.age = "25";

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

    sObj.applicant = s;    //<========================================================= NEW CODE

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


    Console.ReadLine();
}

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

GeneralRe: C# Object Pin
Ramkumar_S20-Feb-11 15:29
Ramkumar_S20-Feb-11 15:29 

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.