Click here to Skip to main content
15,886,842 members
Home / Discussions / C#
   

C#

 
GeneralRe: Automatically creating classes ? Pin
Arjan Einbu1-Feb-04 22:04
Arjan Einbu1-Feb-04 22:04 
GeneralRe: Automatically creating classes ? Pin
Colin Angus Mackay2-Feb-04 1:33
Colin Angus Mackay2-Feb-04 1:33 
GeneralRe: Automatically creating classes ? Pin
Arjan Einbu2-Feb-04 3:26
Arjan Einbu2-Feb-04 3:26 
GeneralRe: Automatically creating classes ? Pin
Colin Angus Mackay2-Feb-04 4:08
Colin Angus Mackay2-Feb-04 4:08 
GeneralRe: Automatically creating classes ? Pin
Arjan Einbu2-Feb-04 4:36
Arjan Einbu2-Feb-04 4:36 
GeneralRe: Automatically creating classes ? Pin
Colin Angus Mackay1-Feb-04 1:35
Colin Angus Mackay1-Feb-04 1:35 
GeneralRe: Automatically creating classes ? Pin
Andres Coder1-Feb-04 4:47
Andres Coder1-Feb-04 4:47 
GeneralRe: Automatically creating classes ? Pin
Colin Angus Mackay1-Feb-04 5:01
Colin Angus Mackay1-Feb-04 5:01 
At the top of the file you can add using statements so that you can short circuit the path to the classes. If there is any ambiguity, for example two classes with the same name but in different namespaces, you will still have to use the full path.

For example:
using MainNameSpace;
using MainNameSpace.MyClasses;

then later in your code you can just put:
PropertiesClass.Instance.SomeFunction()


C# only permits pointers in unsafemethods. However if you are going to use the instance a lot then you can just assign it to a variable as normal. e.g.
    PropertiesClass pci = PropertiesClass.Instance;
...
    pci.SomeFunction();


I hope this points you in the right direction.

Regards,
Colin.



--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar


QuestionVirtual colums in a datagrid? Pin
Franz Pentenrieder31-Jan-04 12:02
Franz Pentenrieder31-Jan-04 12:02 
AnswerRe: Virtual colums in a datagrid? Pin
Heath Stewart2-Feb-04 4:21
protectorHeath Stewart2-Feb-04 4:21 
GeneralQuick answer for threading Pin
jacal9931-Jan-04 11:35
jacal9931-Jan-04 11:35 
GeneralRe: Quick answer for threading Pin
OmegaSupreme1-Feb-04 5:37
OmegaSupreme1-Feb-04 5:37 
GeneralProblem with events (I think) ... Pin
Andres Coder31-Jan-04 9:14
Andres Coder31-Jan-04 9:14 
GeneralRe: Problem with events (I think) ... Pin
Mazdak31-Jan-04 9:31
Mazdak31-Jan-04 9:31 
GeneralA drawing method parameters ... Pin
Andres Coder31-Jan-04 2:44
Andres Coder31-Jan-04 2:44 
GeneralRe: A drawing method parameters ... Pin
Mazdak31-Jan-04 4:36
Mazdak31-Jan-04 4:36 
GeneralRe: A drawing method parameters ... Pin
Nick Parker31-Jan-04 4:44
protectorNick Parker31-Jan-04 4:44 
Questionwhere is "Project Settings (ALT+F7)" of VC++6.0 in VS.NET ?? Pin
Anonymous31-Jan-04 2:17
Anonymous31-Jan-04 2:17 
AnswerRe: where is "Project Settings (ALT+F7)" of VC++6.0 in VS.NET ?? Pin
22491731-Jan-04 2:50
22491731-Jan-04 2:50 
AnswerRe: where is "Project Settings (ALT+F7)" of VC++6.0 in VS.NET ?? Pin
Mazdak31-Jan-04 4:45
Mazdak31-Jan-04 4:45 
GeneralProperties in a Winform Pin
StephenMcAllister30-Jan-04 23:18
StephenMcAllister30-Jan-04 23:18 
GeneralRe: Properties in a Winform Pin
Colin Angus Mackay31-Jan-04 1:28
Colin Angus Mackay31-Jan-04 1:28 
GeneralRe: Properties in a Winform Pin
StephenMcAllister31-Jan-04 19:31
StephenMcAllister31-Jan-04 19:31 
GeneralRe: Properties in a Winform Pin
Colin Angus Mackay1-Feb-04 1:40
Colin Angus Mackay1-Feb-04 1:40 
Generalhttp/ftp download redirection problem Pin
Member 85084030-Jan-04 22:32
Member 85084030-Jan-04 22:32 

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.