no more submodule
This commit is contained in:
20
GtkSharp/Source/Tools/GapiCodegen/XmlElementExtensions.cs
Normal file
20
GtkSharp/Source/Tools/GapiCodegen/XmlElementExtensions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
namespace GtkSharp.Generation
|
||||
{
|
||||
public static class XmlElementExtensions
|
||||
{
|
||||
public static bool GetAttributeAsBoolean (this XmlElement elt, string name)
|
||||
{
|
||||
string value = elt.GetAttribute (name);
|
||||
|
||||
if (String.IsNullOrEmpty (value)) {
|
||||
return false;
|
||||
} else {
|
||||
return XmlConvert.ToBoolean (value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user