Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
Questionautocad c# and robot Pin
kalidG7-Oct-09 9:32
kalidG7-Oct-09 9:32 
AnswerRe: autocad c# and robot Pin
Christian Graus7-Oct-09 9:59
protectorChristian Graus7-Oct-09 9:59 
QuestionProblem with using "out" in void methods Pin
AndyASPVB7-Oct-09 8:58
AndyASPVB7-Oct-09 8:58 
AnswerRe: Problem with using "out" in void methods Pin
Luc Pattyn7-Oct-09 9:08
sitebuilderLuc Pattyn7-Oct-09 9:08 
AnswerRe: Problem with using "out" in void methods Pin
Mirko19807-Oct-09 10:09
Mirko19807-Oct-09 10:09 
GeneralRe: Problem with using "out" in void methods Pin
AndyASPVB7-Oct-09 12:00
AndyASPVB7-Oct-09 12:00 
GeneralRe: Problem with using "out" in void methods Pin
Not Active7-Oct-09 12:14
mentorNot Active7-Oct-09 12:14 
AnswerRe: Problem with using "out" in void methods Pin
Saksida Bojan7-Oct-09 10:12
Saksida Bojan7-Oct-09 10:12 
Edit: It seems i have missread your post, if this doesn't help i am sorry

You didn't explain properly. There can be either solution, depends on your need

you can use ref keyword
// Some code
Int32 getDouble = 6;
DoubleIt(ref getDouble);
// Now you have getDouble with value 12

public void DoubleIt(ref Int32 nevVal)
{
nevVal = nevVal * 2; 
}


You can use Property

public class A
{
    public A(){}
    private Int32 _subInt;

    public Int32 unit
    {
        get
        {
            return _subInt * 2;  // Yust for fun i double it
        }
        set
        {
            subInt = value;
        }
    }
}

//to acses it
A a = new A();
a.unit = 4; // Asign 4 to a property
MessageBox.Show(a.unit.ToString()); // shows a messagebox with a 8 as it was multiplied by 2 when we get from unit property

Questionweb and window applications that work on one same database file Pin
Djtech017-Oct-09 8:31
Djtech017-Oct-09 8:31 
AnswerRe: web and window applications that work on one same database file Pin
Christian Graus7-Oct-09 10:00
protectorChristian Graus7-Oct-09 10:00 
GeneralRe: web and window applications that work on one same database file Pin
Djtech018-Oct-09 6:53
Djtech018-Oct-09 6:53 
AnswerRe: web and window applications that work on one same database file Pin
Christian Graus7-Oct-09 11:05
protectorChristian Graus7-Oct-09 11:05 
QuestionWhy server doesn't respond? Pin
Aljaz1117-Oct-09 7:46
Aljaz1117-Oct-09 7:46 
AnswerRe: Why server doesn't respond? Pin
Luc Pattyn7-Oct-09 9:05
sitebuilderLuc Pattyn7-Oct-09 9:05 
GeneralRe: Why server doesn't respond? Pin
Aljaz1118-Oct-09 0:17
Aljaz1118-Oct-09 0:17 
GeneralRe: Why server doesn't respond? Pin
Luc Pattyn8-Oct-09 1:10
sitebuilderLuc Pattyn8-Oct-09 1:10 
GeneralRe: Why server doesn't respond? [modified] Pin
Aljaz1118-Oct-09 5:31
Aljaz1118-Oct-09 5:31 
GeneralRe: Why server doesn't respond? Pin
Luc Pattyn8-Oct-09 5:49
sitebuilderLuc Pattyn8-Oct-09 5:49 
GeneralRe: Why server doesn't respond? Pin
Aljaz1118-Oct-09 5:55
Aljaz1118-Oct-09 5:55 
QuestionHelp is needed (Urgent) Pin
jashimu7-Oct-09 7:40
jashimu7-Oct-09 7:40 
AnswerRe: Help is needed (Urgent) Pin
EliottA7-Oct-09 9:07
EliottA7-Oct-09 9:07 
QuestionWhat's special with message box? Pin
teknolog1237-Oct-09 6:56
teknolog1237-Oct-09 6:56 
AnswerRe: What's special with message box? Pin
PIEBALDconsult7-Oct-09 7:27
mvePIEBALDconsult7-Oct-09 7:27 
GeneralRe: What's special with message box? [modified] Pin
teknolog1237-Oct-09 7:37
teknolog1237-Oct-09 7:37 
GeneralRe: What's special with message box? Pin
LimitedAtonement7-Oct-09 7:42
LimitedAtonement7-Oct-09 7: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.