Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int MyFunc(int a, int b)
- {
- int c = Func1(a)
- int d = Func2(b)
- return Func3(c, d)
- }
- </code>
- з кодом колег
- <code>
- void Func1()
- {
- this.c = 5 * Application.ACointainer.Instance.A
- }
- void Func2()
- {
- this.d = 10 * Application.BCointainer.Instance.B
- }
- void Func3()
- {
- this.result = this.c + this.d
- }
- ....
- void MyFunc()
- {
- Func1()
- Func2()
- Func3()
- }
- </code>
- або ще краще
- <code>
- void MyFunc()
- {
- this.result = 5 * Application.ACointainer.Instance.A + 10 * Application.BCointainer.Instance.B
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement