diff options
Diffstat (limited to 'src/PBNBoard.cs')
-rw-r--r-- | src/PBNBoard.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/PBNBoard.cs b/src/PBNBoard.cs index 7578fbe..5323575 100644 --- a/src/PBNBoard.cs +++ b/src/PBNBoard.cs @@ -72,18 +72,23 @@ namespace BCDD return false;
}
- public String GetField(String key)
+ public PBNField GetFieldObject(String key)
{
foreach (PBNField field in this.Fields)
{
if (key.Equals(field.Key))
{
- return field.Value;
+ return field;
}
}
throw new FieldNotFoundException(key + " field not found");
}
+ public String GetField(String key)
+ {
+ return this.GetFieldObject(key).Value;
+ }
+
public void DeleteField(String key)
{
List<PBNField> toRemove = new List<PBNField>();
|