PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/IronPython_2_0/Src/IronPythonTest/DefaultParams.cs

#
C# | 28 lines | 11 code | 3 blank | 14 comment | 0 complexity | 384bbf73d0a45e05a511e0710702f296 MD5 | raw file
 1/* ****************************************************************************
 2 *
 3 * Copyright (c) Microsoft Corporation. 
 4 *
 5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 6 * copy of the license can be found in the License.html file at the root of this distribution. If 
 7 * you cannot locate the  Microsoft Public License, please send an email to 
 8 * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15using System; using Microsoft;
16
17
18using System.Runtime.InteropServices;
19
20namespace IronPythonTest {
21    public class DefaultParams {
22        public static int FuncWithDefaults([DefaultParameterValue(1)] int x,
23           [DefaultParameterValue(2)] int y,
24           [DefaultParameterValue(3)] int z) {
25            return x + y + z;
26        }
27    }
28}