Created
January 14, 2019 09:11
-
-
Save forenheith/feff056bfda94c2f4fa5fd768bb6335c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static AtcPermission GetATCPermission(this XElement element, XName name) | |
{ | |
var childElement = element.Attribute(name); | |
if (childElement == null) return AtcPermission.Board; | |
switch (childElement.Value) | |
{ | |
case "N": return AtcPermission.NoBoard; | |
default: return AtcPermission.Board; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment