Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@865 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
4 changed files with 92 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt">2002-2005 AlphaSierraPapa</copyright>
|
||||||
|
// <license see="prj:///doc/license.txt">GNU General Public License</license>
|
||||||
|
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
|
||||||
|
using System; |
||||||
|
|
||||||
|
namespace Debugger.Tests.TestPrograms |
||||||
|
{ |
||||||
|
public class FunctionArgumentVariables |
||||||
|
{ |
||||||
|
public static void Main() |
||||||
|
{ |
||||||
|
System.Diagnostics.Debugger.Break(); |
||||||
|
|
||||||
|
StaticFunction(0, "S"); |
||||||
|
StaticFunction(1, "S", "p1"); |
||||||
|
StaticFunction(2, null, "p1", "p2"); |
||||||
|
new FunctionArgumentVariables().Function(0, "S"); |
||||||
|
new FunctionArgumentVariables().Function(1, "S", "p1"); |
||||||
|
new FunctionArgumentVariables().Function(2, null, "p1", "p2"); |
||||||
|
} |
||||||
|
|
||||||
|
static void StaticFunction(int i, string s, params string[] args) |
||||||
|
{ |
||||||
|
System.Diagnostics.Debugger.Break(); |
||||||
|
} |
||||||
|
|
||||||
|
void Function(int i, string s, params string[] args) |
||||||
|
{ |
||||||
|
System.Diagnostics.Debugger.Break(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue