2008-08-07 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / errors / cs0177-8.cs
1 // cs0177-8.cs: The out parameter `parameterModifiers' must be assigned to before control leaves the current method
2 // Line: 17
3
4 using System;
5 using System.Reflection;
6
7 /// <summary>
8 /// MS does not report CS0177 for structs:
9 /// https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=304489
10 /// </summary>
11 class Program
12 {
13         bool GetArgsForCall (object [] originalArgs, out ParameterModifier parameterModifiers)
14         {
15                 int countOfArgs = originalArgs.Length;
16                 if (countOfArgs == 0)
17                         return false;
18
19                 parameterModifiers = new ParameterModifier (countOfArgs);
20                 return true;
21         }
22 }