I'm trying to clean up some code and pull out long sections of code inside OBU, and paste them into functions (methods) at the end of OBU. I think this is called creating local methods.
A sample local method:
// Declare a local function. string AppendPathSeparator(string filepath) { if (! filepath.EndsWith(@"\")) filepath += @"\"; return filepath; }
Is it possible to create local methods inside OBU?
If not, is my only choice to move it outside of OBU, and use an access modifier of private protected?
thank you
Comment