2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0177-8.cs
blob2a29acdd7fc9b4828ab23790a593e95dd26b7c1b
1 // cs0177-8.cs: The out parameter `parameterModifiers' must be assigned to before control leaves the current method
2 // Line: 17
4 using System;
5 using System.Reflection;
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
13 bool GetArgsForCall (object [] originalArgs, out ParameterModifier parameterModifiers)
15 int countOfArgs = originalArgs.Length;
16 if (countOfArgs == 0)
17 return false;
19 parameterModifiers = new ParameterModifier (countOfArgs);
20 return true;