Skip to content

Commit 0a59f7a

Browse files
committed
Readding iswriteable
1 parent bacefd4 commit 0a59f7a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/EmberLibConsumer.net/Lawo.EmberPlusSharp/Model/IParameter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public interface IParameter : IElementWithSchemas
2929
/// <summary>Gets <b>access</b>.</summary>
3030
ParameterAccess Access { get; }
3131

32+
bool IsWriteable { get; }
33+
3234
/// <summary>Gets <b>format</b>.</summary>
3335
string Format { get; }
3436

src/EmberLibConsumer.net/Lawo.EmberPlusSharp/Model/ParameterBase`2.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public ParameterAccess Access
3030
private set { this.SetValue(ref this.access, value); }
3131
}
3232

33+
/// <inheritdoc/>
34+
public bool IsWriteable => this.access == ParameterAccess.ReadWrite;
35+
3336
/// <inheritdoc/>
3437
public string Format
3538
{

0 commit comments

Comments
 (0)