See Also: CallerLineNumberAttribute Members
You apply the CallerLineNumber attribute to an optional parameter that has a default value. You must specify an explicit default value for the optional parameter. You can't apply this attribute to parameters that aren't specified as optional.
For more information, see Caller Information (C# and Visual Basic).