In c# is it possible to create a function that can only be called from within another function?
eg can you do something like this?
private void a() {
b(); c(); ...do something else
private void b() { ..do something but can only be called from a() }
private void c() { ..do something but can only be called from a() }
}
The reason I want to do this is that function b() and c() split some implentation details of a() and they are just cleaner and easier to read in their own scope. However, these functions are of no use to the class as a() does some handling after they are called which must take place.