mscorlib(4.0.0.0) API with additions
LabelTarget.cs
2 {
4  [global::__DynamicallyInvokable]
5  public sealed class LabelTarget
6  {
7  private readonly Type _type;
8 
9  private readonly string _name;
10 
13  [global::__DynamicallyInvokable]
14  public string Name
15  {
16  [global::__DynamicallyInvokable]
17  get
18  {
19  return _name;
20  }
21  }
22 
25  [global::__DynamicallyInvokable]
26  public Type Type
27  {
28  [global::__DynamicallyInvokable]
29  get
30  {
31  return _type;
32  }
33  }
34 
35  internal LabelTarget(Type type, string name)
36  {
37  _type = type;
38  _name = name;
39  }
40 
43  [global::__DynamicallyInvokable]
44  public override string ToString()
45  {
46  if (!string.IsNullOrEmpty(Name))
47  {
48  return Name;
49  }
50  return "UnamedLabel";
51  }
52  }
53 }
Used to represent the target of a T:System.Linq.Expressions.GotoExpression.
Definition: LabelTarget.cs:5
override string ToString()
Returns a T:System.String that represents the current T:System.Object.
Definition: LabelTarget.cs:44
string Name
Gets the name of the label.
Definition: LabelTarget.cs:15
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18