Skip to main content

All Questions

Tagged with
-2 votes
3 answers
137 views

Access UI form controls from another class into your main form in C#

How can I use my UI form controls from another class? I want to work with these controls in another class, then call it into my main form. The problem is that the new class I created can't seem to ...
taji01's user avatar
  • 2,615
4 votes
4 answers
332 views

How to control class visibility by owner in c#

Often I want some (or all) functions of some class C1 to be accessible only from within another class C2, because C2 is kind of a proxy, it owns objects of type C1 (e.g.: methods of a class "Neuron", ...
Yekoor's user avatar
  • 73
2 votes
3 answers
6k views

How do I scope a class only to be used inside the Class Library project?

I have a class library with some public classes, and many internal utility classes. These utilities should not be visible/usable to people who link against the DLL. namespace MyProject { public ...
Robin Rodricks's user avatar
0 votes
3 answers
797 views

C# Static Order, Member Variables, Member Enums

Four quick questions on static variables that the MSDN Faq and other basic guides seem to neglect. Is public static the same as static public?e.g. public static class Globals {...}vs.static public ...
Jason R. Mick's user avatar
3 votes
2 answers
135 views

Basic class naming and visibility questions

I always see people giving me code (I mean code examples for questions on SO and the like) like: class MyData{ ObservableCollection<Color> Colors; ObservableCollection<...
baron's user avatar
  • 11.2k