Skip to content

Commit 4d46b58

Browse files
committed
C#: Add some initial examples.
1 parent 75b4632 commit 4d46b58

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System;
2+
3+
namespace Summaries;
4+
5+
public class BasicFlow
6+
{
7+
public BasicFlow ReturnThis(object input)
8+
{
9+
return this;
10+
}
11+
12+
public string ReturnParam0(string input0, object input1)
13+
{
14+
return input0;
15+
}
16+
17+
public object ReturnParam1(string input0, object input1)
18+
{
19+
return input1;
20+
}
21+
22+
public object ReturnParamMultiple(object input0, object input1)
23+
{
24+
return (System.DateTime.Now.DayOfWeek == System.DayOfWeek.Monday) ? input0 : input1;
25+
}
26+
27+
public int ReturnArrayElement(int[] input)
28+
{
29+
return input[0];
30+
}
31+
32+
public void AssignToArray(int data, int[] target)
33+
{
34+
target[0] = data;
35+
}
36+
}

0 commit comments

Comments
 (0)