|
47 | 47 | <Docs> |
48 | 48 | <summary>Represents a code checksum pragma code entity.</summary> |
49 | 49 | <remarks> |
50 | | - <format type="text/markdown"><![CDATA[ |
51 | | - |
52 | | -## Remarks |
53 | | - The <xref:System.CodeDom.CodeChecksumPragma> class inherits from <xref:System.CodeDom.CodeDirective> and can be contained in a <xref:System.CodeDom.CodeDirectiveCollection>. <xref:System.CodeDom.CodeChecksumPragma> provides the unique identification of source files, including files that have been generated. |
54 | | - |
55 | | - |
56 | | - |
57 | | -## Examples |
58 | | - The following code example shows the use of the <xref:System.CodeDom.CodeChecksumPragma> class. |
59 | | - |
| 50 | + <format type="text/markdown"><![CDATA[ |
| 51 | +
|
| 52 | +## Remarks |
| 53 | + The <xref:System.CodeDom.CodeChecksumPragma> class inherits from <xref:System.CodeDom.CodeDirective> and can be contained in a <xref:System.CodeDom.CodeDirectiveCollection>. <xref:System.CodeDom.CodeChecksumPragma> provides the unique identification of source files, including files that have been generated. |
| 54 | +
|
| 55 | +
|
| 56 | +
|
| 57 | +## Examples |
| 58 | + The following code example shows the use of the <xref:System.CodeDom.CodeChecksumPragma> class. |
| 59 | +
|
60 | 60 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeChecksumPragma/Overview/codedirective.cs" id="Snippet1"::: |
61 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet1"::: |
62 | | - |
| 61 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet1"::: |
| 62 | +
|
63 | 63 | ]]></format> |
64 | 64 | </remarks> |
65 | 65 | </Docs> |
|
106 | 106 | <Docs> |
107 | 107 | <summary>Initializes a new instance of the <see cref="T:System.CodeDom.CodeChecksumPragma" /> class.</summary> |
108 | 108 | <remarks> |
109 | | - <format type="text/markdown"><![CDATA[ |
110 | | - |
111 | | -## Examples |
112 | | - The following code example shows the use of the <xref:System.CodeDom.CodeChecksumPragma.%23ctor%2A> constructor. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class. |
113 | | - |
| 109 | + <format type="text/markdown"><![CDATA[ |
| 110 | +
|
| 111 | +## Examples |
| 112 | + The following code example shows the use of the <xref:System.CodeDom.CodeChecksumPragma.%23ctor%2A> constructor. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class. |
| 113 | +
|
114 | 114 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeChecksumPragma/Overview/codedirective.cs" id="Snippet4"::: |
115 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet4"::: |
116 | | - |
| 115 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet4"::: |
| 116 | +
|
117 | 117 | ]]></format> |
118 | 118 | </remarks> |
119 | 119 | </Docs> |
|
159 | 159 | <param name="checksumData">A byte array that contains the checksum data.</param> |
160 | 160 | <summary>Initializes a new instance of the <see cref="T:System.CodeDom.CodeChecksumPragma" /> class using a file name, a GUID representing the checksum algorithm, and a byte stream representing the checksum data.</summary> |
161 | 161 | <remarks> |
162 | | - <format type="text/markdown"><![CDATA[ |
163 | | - |
164 | | -## Remarks |
165 | | - For more information on the `checksumAlgorithmId` parameter, see the <xref:System.CodeDom.CodeChecksumPragma.ChecksumAlgorithmId%2A> property. |
166 | | - |
167 | | - |
168 | | - |
169 | | -## Examples |
170 | | - The following code example shows the use of the <xref:System.CodeDom.CodeChecksumPragma.%23ctor%2A> constructor. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class. |
171 | | - |
| 162 | + <format type="text/markdown"><![CDATA[ |
| 163 | +
|
| 164 | +## Remarks |
| 165 | + For more information on the `checksumAlgorithmId` parameter, see the <xref:System.CodeDom.CodeChecksumPragma.ChecksumAlgorithmId%2A> property. |
| 166 | +
|
| 167 | +
|
| 168 | +
|
| 169 | +## Examples |
| 170 | + The following code example shows the use of the <xref:System.CodeDom.CodeChecksumPragma.%23ctor%2A> constructor. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class. |
| 171 | +
|
172 | 172 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeChecksumPragma/Overview/codedirective.cs" id="Snippet8"::: |
173 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet8"::: |
174 | | - |
| 173 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet8"::: |
| 174 | +
|
175 | 175 | ]]></format> |
176 | 176 | </remarks> |
177 | 177 | </Docs> |
|
217 | 217 | <summary>Gets or sets a GUID that identifies the checksum algorithm to use.</summary> |
218 | 218 | <value>A <see cref="T:System.Guid" /> that identifies the checksum algorithm to use.</value> |
219 | 219 | <remarks> |
220 | | - <format type="text/markdown"><![CDATA[ |
221 | | - |
222 | | -## Remarks |
223 | | - Algorithms are provided for the MD5 and SHA1 hashes. The GUID value to use for the MD5 hash is {0x406ea660, 0x64cf, 0x4c82, 0xb6, 0xf0, 0x42, 0xd4, 0x81, 0x72, 0xa7, 0x99}. The GUID to use for the SHA1 hash is {0xff1816ec, 0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60}. |
224 | | - |
225 | | - The calculation of the checksum is language-specific. That is, the language vendor can use any of the hashing algorithms known to the debugger to calculate the checksum. The use of a GUID for this property provides hash algorithm extensibility. |
226 | | - |
227 | | - Due to collision problems with SHA1 and MD5, Microsoft recommends a security model based on SHA256 or better. |
228 | | - |
229 | | -## Examples |
230 | | - The following code example shows the setting of the <xref:System.CodeDom.CodeChecksumPragma.ChecksumAlgorithmId%2A> property. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class. |
231 | | - |
| 220 | + <format type="text/markdown"><![CDATA[ |
| 221 | +
|
| 222 | +## Remarks |
| 223 | +
|
| 224 | +Algorithms are provided for the MD5 and SHA-1 hashes. The GUID value to use for the MD5 hash is {0x406ea660, 0x64cf, 0x4c82, 0xb6, 0xf0, 0x42, 0xd4, 0x81, 0x72, 0xa7, 0x99}. The GUID to use for the SHA-1 hash is {0xff1816ec, 0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60}. |
| 225 | +
|
| 226 | + The calculation of the checksum is language-specific. That is, the language vendor can use any of the hashing algorithms known to the debugger to calculate the checksum. The use of a GUID for this property provides hash algorithm extensibility. |
| 227 | +
|
| 228 | + Due to collision problems with SHA-1 and MD5, Microsoft recommends a security model based on SHA-256 or better. |
| 229 | +
|
| 230 | +## Examples |
| 231 | + The following code example shows the setting of the <xref:System.CodeDom.CodeChecksumPragma.ChecksumAlgorithmId%2A> property. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class. |
| 232 | +
|
232 | 233 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeChecksumPragma/Overview/codedirective.cs" id="Snippet6"::: |
233 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet6"::: |
234 | | - |
| 234 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet6"::: |
| 235 | +
|
235 | 236 | ]]></format> |
236 | 237 | </remarks> |
237 | 238 | </Docs> |
|
277 | 278 | <summary>Gets or sets the value of the data for the checksum calculation.</summary> |
278 | 279 | <value>A byte array that contains the data for the checksum calculation.</value> |
279 | 280 | <remarks> |
280 | | - <format type="text/markdown"><![CDATA[ |
281 | | - |
282 | | -## Remarks |
283 | | - The <xref:System.CodeDom.CodeChecksumPragma.ChecksumData%2A> property contains data from the target file specified by the <xref:System.CodeDom.CodeChecksumPragma.FileName%2A> property. |
284 | | - |
285 | | - |
286 | | - |
287 | | -## Examples |
288 | | - The following code example shows the setting of the <xref:System.CodeDom.CodeChecksumPragma.ChecksumData%2A> property. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class |
289 | | - |
| 281 | + <format type="text/markdown"><![CDATA[ |
| 282 | +
|
| 283 | +## Remarks |
| 284 | + The <xref:System.CodeDom.CodeChecksumPragma.ChecksumData%2A> property contains data from the target file specified by the <xref:System.CodeDom.CodeChecksumPragma.FileName%2A> property. |
| 285 | +
|
| 286 | +
|
| 287 | +
|
| 288 | +## Examples |
| 289 | + The following code example shows the setting of the <xref:System.CodeDom.CodeChecksumPragma.ChecksumData%2A> property. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class |
| 290 | +
|
290 | 291 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeChecksumPragma/Overview/codedirective.cs" id="Snippet7"::: |
291 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet7"::: |
292 | | - |
| 292 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet7"::: |
| 293 | +
|
293 | 294 | ]]></format> |
294 | 295 | </remarks> |
295 | 296 | </Docs> |
|
331 | 332 | <summary>Gets or sets the path to the checksum file.</summary> |
332 | 333 | <value>The path to the checksum file.</value> |
333 | 334 | <remarks> |
334 | | - <format type="text/markdown"><![CDATA[ |
335 | | - |
336 | | -## Remarks |
337 | | - An example of a <xref:System.CodeDom.CodeChecksumPragma.FileName%2A> property value is "C:\Temp\Test\OuterLinePragma.txt". |
338 | | - |
339 | | - |
340 | | - |
341 | | -## Examples |
342 | | - The following code example shows the setting of the <xref:System.CodeDom.CodeChecksumPragma.FileName%2A> property. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class |
343 | | - |
| 335 | + <format type="text/markdown"><![CDATA[ |
| 336 | +
|
| 337 | +## Remarks |
| 338 | + An example of a <xref:System.CodeDom.CodeChecksumPragma.FileName%2A> property value is "C:\Temp\Test\OuterLinePragma.txt". |
| 339 | +
|
| 340 | +
|
| 341 | +
|
| 342 | +## Examples |
| 343 | + The following code example shows the setting of the <xref:System.CodeDom.CodeChecksumPragma.FileName%2A> property. This code example is part of a larger example provided for the <xref:System.CodeDom.CodeChecksumPragma> class |
| 344 | +
|
344 | 345 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeChecksumPragma/Overview/codedirective.cs" id="Snippet5"::: |
345 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet5"::: |
346 | | - |
| 346 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.CodeDom.CodeDirectives/VB/codedirective.vb" id="Snippet5"::: |
| 347 | +
|
347 | 348 | ]]></format> |
348 | 349 | </remarks> |
349 | 350 | </Docs> |
|
0 commit comments