forked from LEGO/AsyncAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScope.cs
More file actions
52 lines (47 loc) · 1.37 KB
/
Copy pathScope.cs
File metadata and controls
52 lines (47 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright (c) The LEGO Group. All rights reserved.
namespace LEGO.AsyncAPI.Writers
{
/// <summary>
/// Class representing scope information.
/// </summary>
public sealed class Scope
{
/// <summary>
/// The type of the scope.
/// </summary>
private readonly ScopeType type;
/// <summary>
/// Initializes a new instance of the <see cref="Scope"/> class.
/// Constructor.
/// </summary>
/// <param name="type">The type of the scope.</param>
public Scope(ScopeType type)
{
this.type = type;
}
/// <summary>
/// Gets or sets get/Set the object count for this scope.
/// </summary>
/// <value>
/// The object count.
/// </value>
public int ObjectCount { get; set; }
/// <summary>
/// Gets the scope type for this scope.
/// </summary>
public ScopeType Type
{
get
{
return this.type;
}
}
/// <summary>
/// Gets or sets a value indicating whether get/Set the whether it is in previous array scope.
/// </summary>
/// <value>
/// <c>true</c> if this instance is in array; otherwise, <c>false</c>.
/// </value>
public bool IsInArray { get; set; } = false;
}
}