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

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMike Voorhees <mrvoorhe@users.noreply.github.com>2022-08-04 18:03:23 +0300
committerGitHub <noreply@github.com>2022-08-04 18:03:23 +0300
commit1120fae3c496cd96caed98b2b8fc2d1dde2ba8d3 (patch)
treefaf0a3f1012fb658c09307bbdb60afbaa12ff6d2 /docs
parent99f923341813d4f28eeb09191622cd2cc0b8a32d (diff)
Improve tests and docs (#2941)
* Add a test for the `<namespace>` element. There were no tests. * Expand `CanPreserveTypesUsingRegex` to help highlight how it behaves differently from `<namespace>` * Add more examples to the docs
Diffstat (limited to 'docs')
-rw-r--r--docs/data-formats.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/data-formats.md b/docs/data-formats.md
index ef782495b..e360a914b 100644
--- a/docs/data-formats.md
+++ b/docs/data-formats.md
@@ -100,6 +100,21 @@ The `required` attribute specifies that if the type is not marked, during the ma
</linker>
```
+### Preserve more than one type within an assembly
+
+```xml
+<linker>
+ <assembly fullname="Assembly">
+
+ <!-- Preserves all types who's fully qualified type name matches the regular expression -->
+ <type fullname="Assembly.Namespace*" />
+
+ <!-- Preserve all types within the specified namespace -->
+ <namespace fullname="Assembly.Namespace" />
+ </assembly>
+</linker>
+```
+
### Preserve only selected fields on a type
```xml