Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3555
static class?
posted
Can anyone show me a quick example on how to do this..?

I need to set 2 properties of an object (IFT Class) called version and iftno
and then be able to access it globally throughout the application.

Here is what i tried so far,


Is this correct?

namespace MarketForecaster

{

static class IFT

{

private static Int64 m_iftno = "";

private static int m_version = "";



public static Int64 IFTNo

{

get { return m_iftno; }

set { m_iftno = value; }

}

public static int Version

{

get { return m_version; }

set { m_version = value; }

}



}

}
Parents Reply Children
No Data