Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mdoc/Test
diff options
context:
space:
mode:
authorJoel Martinez <joelmartinez@gmail.com>2017-03-06 23:27:17 +0300
committerJoel Martinez <joelmartinez@gmail.com>2017-03-07 01:03:32 +0300
commitcea74db71a4671ab278977e41b3d761d7779e3b1 (patch)
tree2b4f6122959bfa99a46153595a35f05be0a02bbc /mdoc/Test
parent170bf315e173e2fed0c112a7876e0ec7f4cff59e (diff)
mdoc: special characters in attributes are now filtered.
Fixes #32, which was an issue with the ascii null character. It caused the resulting XML to be malformed.
Diffstat (limited to 'mdoc/Test')
-rw-r--r--mdoc/Test/DocTest-InternalInterface.cs1
-rw-r--r--mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml5
2 files changed, 6 insertions, 0 deletions
diff --git a/mdoc/Test/DocTest-InternalInterface.cs b/mdoc/Test/DocTest-InternalInterface.cs
index 812f8dc7..34e13b1f 100644
--- a/mdoc/Test/DocTest-InternalInterface.cs
+++ b/mdoc/Test/DocTest-InternalInterface.cs
@@ -7,6 +7,7 @@ namespace MyNamespace {
}
public class MyClass : MyInternalInterface {
+ [System.ComponentModel.DefaultValue ('\0')]
public string Bar {get;set;}
public void BarMeth () {} // part of the interface, but publicly implemented
diff --git a/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml b/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml
index 614b7b7d..4c9b81d2 100644
--- a/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml
+++ b/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml
@@ -34,6 +34,11 @@
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
+ <Attributes>
+ <Attribute>
+ <AttributeName>System.ComponentModel.DefaultValue('\0')</AttributeName>
+ </Attribute>
+ </Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>