Click here to Skip to main content
15,943,406 members
Home / Discussions / C#
   

C#

 
GeneralRe: ref class member variable Pin
John Fisher27-Jan-04 6:51
John Fisher27-Jan-04 6:51 
GeneralRe: ref class member variable Pin
pankajdaga27-Jan-04 7:08
pankajdaga27-Jan-04 7:08 
GeneralRe: ref class member variable Pin
John Fisher27-Jan-04 7:28
John Fisher27-Jan-04 7:28 
GeneralRe: ref class member variable Pin
pankajdaga27-Jan-04 8:22
pankajdaga27-Jan-04 8:22 
GeneralRe: ref class member variable Pin
Heath Stewart27-Jan-04 8:45
protectorHeath Stewart27-Jan-04 8:45 
GeneralRe: ref class member variable Pin
Nick Parker27-Jan-04 6:54
protectorNick Parker27-Jan-04 6:54 
GeneralRe: ref class member variable Pin
pankajdaga27-Jan-04 7:11
pankajdaga27-Jan-04 7:11 
GeneralRe: ref class member variable Pin
Nick Parker27-Jan-04 7:28
protectorNick Parker27-Jan-04 7:28 
Here is a quick example:

public class Test
{
    public Test(){}

    public int MyNumber
    {
        get{return m_i;}
        set{m_i = value;}
    }

    public int m_i;
}

public class SomeOtherClass
{
    public SomeOtherClass(){}


    public void ChangeValue(ref int i)
    {
        i = 5;
    }
}

    // Example
Test t = new Test();
SomeOtherClass soc = new SomeOtherClass();
t.MyNumber = 8;
soc.ChangeValue(ref t.m_i);
Console.Write(t.MyNumber);


- Nick Parker
  My Blog

GeneralWebSvcs vs Remoting Pin
Kant27-Jan-04 6:24
Kant27-Jan-04 6:24 
GeneralRe: WebSvcs vs Remoting Pin
Heath Stewart27-Jan-04 6:36
protectorHeath Stewart27-Jan-04 6:36 
GeneralRe: WebSvcs vs Remoting Pin
Kant27-Jan-04 6:47
Kant27-Jan-04 6:47 
GeneralRe: WebSvcs vs Remoting Pin
Uwe Keim28-Jan-04 3:11
sitebuilderUwe Keim28-Jan-04 3:11 
GeneralCustom controls Pin
Radoslav Bielik27-Jan-04 6:01
Radoslav Bielik27-Jan-04 6:01 
GeneralRe: Custom controls Pin
John Fisher27-Jan-04 6:54
John Fisher27-Jan-04 6:54 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 6:57
Radoslav Bielik27-Jan-04 6:57 
GeneralRe: Custom controls Pin
John Fisher27-Jan-04 7:12
John Fisher27-Jan-04 7:12 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 7:26
Radoslav Bielik27-Jan-04 7:26 
GeneralRe: Custom controls Pin
John Fisher27-Jan-04 7:37
John Fisher27-Jan-04 7:37 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 7:45
Radoslav Bielik27-Jan-04 7:45 
GeneralRe: Custom controls Pin
John Fisher27-Jan-04 12:44
John Fisher27-Jan-04 12:44 
GeneralRe: Custom controls Pin
Nick Parker27-Jan-04 6:56
protectorNick Parker27-Jan-04 6:56 
GeneralRe: Custom controls Pin
Heath Stewart27-Jan-04 7:02
protectorHeath Stewart27-Jan-04 7:02 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 7:21
Radoslav Bielik27-Jan-04 7:21 
GeneralRe: Custom controls Pin
Heath Stewart27-Jan-04 8:53
protectorHeath Stewart27-Jan-04 8:53 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 20:14
Radoslav Bielik27-Jan-04 20:14 

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.