You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csharp/README.md
+8
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,12 @@ Further, you will need to set environment variables so the Senzing installation
32
32
set Path=%SENZING_PATH%\er\lib;%Path%
33
33
```
34
34
35
+
## Using Example Code
36
+
37
+
Senzing encourages and allows you to freely copy the provided example code and modify it to your own needs as you
38
+
see fit. However, please refer to the [Global Suppression Notes] to understand how to best adapt the example code
39
+
to your own coding project.
40
+
35
41
## Building
36
42
37
43
The C# snippets can built using the `dotnet build [project-name]` command under each directory. They can be run using `dotnet run --project [project-name]` command. Attempting to run a snippet will also trigger building it.
@@ -162,3 +168,5 @@ The `SnippetRunner` project will run one or more snippets for you and create a t
// This file is used by Code Analysis to maintain SuppressMessage
2
+
// attributes that are applied to this project.
3
+
// Project-level suppressions either have no target or are given
4
+
// a specific target and scoped to a namespace, type, member, etc.
5
+
6
+
usingSystem.Diagnostics.CodeAnalysis;
7
+
8
+
[assembly:SuppressMessage("Performance","CA1854:Prefer the 'IDictionary.TryGetValue(TKey, out TValue)' method",Justification="Nullable Dictionary making for less readable code.")]
9
+
[assembly:SuppressMessage("Usage","CA2201:Do not raise reserved exception types",Justification="These are examples and there is no need to use more specific exceptions")]
10
+
[assembly:SuppressMessage("Performance","CA1859:Use concrete types when possible for improved performance",Justification="It is better to OOP principle to use interfaces rather than concrete types")]
// This file is used by Code Analysis to maintain SuppressMessage
2
+
// attributes that are applied to this project.
3
+
// Project-level suppressions either have no target or are given
4
+
// a specific target and scoped to a namespace, type, member, etc.
5
+
6
+
usingSystem.Diagnostics.CodeAnalysis;
7
+
8
+
[assembly:SuppressMessage("Performance","CA1859:Use concrete types when possible for improved performance",Justification="Performance hit is insignificant versus OOP best practices for code maintainability")]
// This file is used by Code Analysis to maintain SuppressMessage
2
+
// attributes that are applied to this project.
3
+
// Project-level suppressions either have no target or are given
4
+
// a specific target and scoped to a namespace, type, member, etc.
5
+
6
+
usingSystem.Diagnostics.CodeAnalysis;
7
+
8
+
[assembly:SuppressMessage("Performance","CA1859:Use concrete types when possible for improved performance",Justification="Performance hit is insignificant versus OOP best practices for code maintainability")]
0 commit comments