Skip to content

Commit b2bbd08

Browse files
committed
fix missing snippet warnings
1 parent 5ae3af3 commit b2bbd08

File tree

10 files changed

+28
-33
lines changed

10 files changed

+28
-33
lines changed

includes/remarks/System.IO.Compression/ZipArchive/ZipArchive.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ If you reference the `System.IO.Compression.FileSystem` assembly in your project
1919
The first example shows how to create a new entry and write to it by using a stream.
2020

2121
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/CreateEntry/program1.cs" id="Snippet1":::
22-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchivemode/vb/program1.vb" id="Snippet1":::
22+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/CreateEntry/program1.vb" id="Snippet1":::
2323

2424
The following example shows how to open a zip archive and iterate through the collection of entries.
2525

2626
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/Entries/program1.cs" id="Snippet1":::
27-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchive/vb/program1.vb" id="Snippet1":::
27+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/Entries/program1.vb" id="Snippet1":::
2828

2929
The third example shows how to use extension methods to create a new entry in a zip archive from an existing file and extract the archive contents. You must reference the `System.IO.Compression.FileSystem` assembly to execute the code.
3030

3131
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/Entries/program3.cs" id="Snippet3":::
32-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchive/vb/program3.vb" id="Snippet3":::
32+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/Entries/program3.vb" id="Snippet3":::

includes/remarks/System.IO.Compression/ZipArchiveEntry/FullName.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ You can specify any string as the path of an entry, including strings that speci
77
The following example shows how to iterate through the contents of a .zip file, and extract files that contain the .txt extension.
88

99
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/Entries/program1.cs" id="Snippet1":::
10-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchive/vb/program1.vb" id="Snippet1":::
10+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/Entries/program1.vb" id="Snippet1":::

includes/remarks/System.IO.Compression/ZipArchiveEntry/LastWriteTime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ When you set this property, the <xref:System.DateTimeOffset> value is converted
77
The following example shows how to open an entry in a zip archive, modify it, and set the <xref:System.IO.Compression.ZipArchiveEntry.LastWriteTime%2A> property to the current time.
88

99
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/GetEntry/program2.cs" id="Snippet2":::
10-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchiveentry/vb/program2.vb" id="Snippet2":::
10+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/GetEntry/program2.vb" id="Snippet2":::

includes/remarks/System.IO.Compression/ZipArchiveEntry/Name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ The <xref:System.IO.Compression.ZipArchiveEntry.Name%2A> property contains the p
55
The following example shows how to retrieve entries from a zip archive and evaluate the properties of the entries. It uses the <xref:System.IO.Compression.ZipArchiveEntry.Name%2A> property to display the name of the entry, and the <xref:System.IO.Compression.ZipArchiveEntry.Length%2A> and <xref:System.IO.Compression.ZipArchiveEntry.CompressedLength%2A> properties to calculate how much the file was compressed.
66

77
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/GetEntry/program1.cs" id="Snippet1":::
8-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchiveentry/vb/program1.vb" id="Snippet1":::
8+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/GetEntry/program1.vb" id="Snippet1":::

includes/remarks/System.IO.Compression/ZipArchiveEntry/ZipArchiveEntry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ If you reference the `System.IO.Compression.FileSystem` assembly in your project
1919
The first example shows how to create a new entry in a zip archive and write to it.
2020

2121
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/CreateEntry/program1.cs" id="Snippet1":::
22-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchivemode/vb/program1.vb" id="Snippet1":::
22+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/CreateEntry/program1.vb" id="Snippet1":::
2323

2424
The second example shows how to use the <xref:System.IO.Compression.ZipFileExtensions.ExtractToFile%28System.IO.Compression.ZipArchiveEntry%2CSystem.String%29> extension method. You must reference the `System.IO.Compression.FileSystem` assembly in your project for the code to execute.
2525

2626
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/Entries/program1.cs" id="Snippet1":::
27-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchive/vb/program1.vb" id="Snippet1":::
27+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/Entries/program1.vb" id="Snippet1":::

includes/remarks/System.IO.Compression/ZipArchiveMode/ZipArchiveMode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ The following methods include a parameter named `mode` that lets you specify the
1717
The following example shows how to specify a `ZipArchiveMode` value when creating a <xref:System.IO.Compression.ZipArchive> object.
1818

1919
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/CreateEntry/program1.cs" id="Snippet1":::
20-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchivemode/vb/program1.vb" id="Snippet1":::
20+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/CreateEntry/program1.vb" id="Snippet1":::

includes/remarks/System.IO.Compression/ZipFile/ZipFile.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
44
The methods for manipulating zip archives and their files are spread across three classes: <xref:System.IO.Compression.ZipFile>, <xref:System.IO.Compression.ZipArchive>, and <xref:System.IO.Compression.ZipArchiveEntry>.
55

6-
|To...|Use...|
7-
|---------|----------|
8-
|Create a zip archive from a directory|<xref:System.IO.Compression.ZipFile.CreateFromDirectory%2A?displayProperty=nameWithType>|
9-
|Extract the contents of a zip archive to a directory|<xref:System.IO.Compression.ZipFile.ExtractToDirectory%2A?displayProperty=nameWithType>|
10-
|Add new files to an existing zip archive|<xref:System.IO.Compression.ZipArchive.CreateEntry%2A?displayProperty=nameWithType>|
11-
|Retrieve a file in a zip archive|<xref:System.IO.Compression.ZipArchive.GetEntry%2A?displayProperty=nameWithType>|
12-
|Retrieve all of the files in a zip archive|<xref:System.IO.Compression.ZipArchive.Entries%2A?displayProperty=nameWithType>|
13-
|To open a stream to an individual file contained in a zip archive|<xref:System.IO.Compression.ZipArchiveEntry.Open%2A?displayProperty=nameWithType>|
14-
|Delete a file from a zip archive|<xref:System.IO.Compression.ZipArchiveEntry.Delete%2A?displayProperty=nameWithType>|
6+
| To... | Use... |
7+
|---------------------------------------|--------|
8+
| Create a zip archive from a directory | <xref:System.IO.Compression.ZipFile.CreateFromDirectory%2A?displayProperty=nameWithType> |
9+
| Extract the contents of a zip archive to a directory | <xref:System.IO.Compression.ZipFile.ExtractToDirectory%2A?displayProperty=nameWithType> |
10+
| Add new files to an existing zip archive | <xref:System.IO.Compression.ZipArchive.CreateEntry%2A?displayProperty=nameWithType> |
11+
| Retrieve a file in a zip archive | <xref:System.IO.Compression.ZipArchive.GetEntry%2A?displayProperty=nameWithType> |
12+
| Retrieve all of the files in a zip archive | <xref:System.IO.Compression.ZipArchive.Entries%2A?displayProperty=nameWithType> |
13+
| Open a stream to an individual file contained in a zip archive|<xref:System.IO.Compression.ZipArchiveEntry.Open%2A?displayProperty=nameWithType> |
14+
| Delete a file from a zip archive | <xref:System.IO.Compression.ZipArchiveEntry.Delete%2A?displayProperty=nameWithType> |
1515

1616
## Examples
1717

includes/remarks/System.IO.Compression/ZipFileExtensions/ZipFileExtensions.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ The <xref:System.IO.Compression.ZipFileExtensions> class contains two methods th
2323
The following example shows how to create a new entry in a zip archive from an existing file, and extract the contents of the archive to a directory.
2424

2525
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/Entries/program3.cs" id="Snippet3":::
26-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchive/vb/program3.vb" id="Snippet3":::
26+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/Entries/program3.vb" id="Snippet3":::
2727

2828
The following example shows how to iterate through the contents of a zip archive and extract files that have a .txt extension.
2929

3030
:::code language="csharp" source="~/snippets/csharp/System.IO.Compression/ZipArchive/Entries/program1.cs" id="Snippet1":::
31-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.io.compression.ziparchive/vb/program1.vb" id="Snippet1":::
32-
31+
:::code language="vb" source="~/snippets/visualbasic/System.IO.Compression/ZipArchive/Entries/program1.vb" id="Snippet1":::

xml/System.Numerics/BigInteger.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,19 +2767,19 @@ A return value of `false` does not imply that <xref:System.Numerics.INumberBase%
27672767

27682768
The precise return value of this method depends on the sign of `value`, as the following table shows.
27692769

2770-
|Sign of `value` parameter|Return value|
2771-
|-------------------------------|------------------|
2772-
|Positive|The natural logarithm of `value`; that is, ln `value`, or log e`value`.|
2773-
|Zero|<xref:System.Double.NegativeInfinity>.|
2774-
|Negative|<xref:System.Double.NaN>.|
2770+
| Sign of `value` parameter | Return value |
2771+
|---------------------------|-------------------------------------------------------------------------|
2772+
| Positive | The natural logarithm of `value`; that is, ln `value`, or log e`value`. |
2773+
| Zero | <xref:System.Double.NegativeInfinity>. |
2774+
| Negative | <xref:System.Double.NaN>. |
27752775

27762776
To calculate the base 10 logarithm of a <xref:System.Numerics.BigInteger> value, call the <xref:System.Numerics.BigInteger.Log10%2A> method. To calculate the logarithm of a number in another base, call the <xref:System.Numerics.BigInteger.Log%28System.Numerics.BigInteger%2CSystem.Double%29> method.
27772777

27782778
You can find the square root of a number by calling the <xref:System.Numerics.BigInteger.Log%2A> method along with the <xref:System.Math.Exp%2A?displayProperty=nameWithType> method. Note that the result is <xref:System.Double.PositiveInfinity?displayProperty=nameWithType> if the result is greater than <xref:System.Double.MaxValue?displayProperty=nameWithType>. The following example calculates the square root of each element in an array of <xref:System.Numerics.BigInteger> values.
27792779

27802780
:::code language="csharp" source="~/snippets/csharp/System.Numerics/BigInteger/LogMethod/log1.cs" interactive="try-dotnet" id="Snippet1":::
27812781
:::code language="fsharp" source="~/snippets/fsharp/System.Numerics/BigInteger/LogMethod/log1.fs" id="Snippet1":::
2782-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.numerics.biginteger.log/vb/log1.vb" id="Snippet1":::
2782+
:::code language="vb" source="~/snippets/visualbasic/System.Numerics/BigInteger/LogMethod/log1.vb" id="Snippet1":::
27832783

27842784
This method corresponds to the <xref:System.Math.Log%28System.Double%29?displayProperty=nameWithType> method for the primitive numeric types.
27852785

xml/System/Math.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4072,14 +4072,12 @@ Remainder = (Math.Abs(dividend) - (Math.Abs(divisor) *
40724072

40734073
This method calls into the underlying C runtime, and the exact result or valid input range may differ between different operating systems or architectures.
40744074

4075-
4076-
40774075
## Examples
40784076
The following example illustrates the <xref:System.Math.Log%2A> method.
40794077

40804078
:::code language="csharp" source="~/snippets/csharp/System/Math/LogMethod/log1.cs" interactive="try-dotnet" id="Snippet2":::
40814079
:::code language="fsharp" source="~/snippets/fsharp/System/Math/LogMethod/log1.fs" id="Snippet2":::
4082-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.Log_Overloads/VB/log1.vb" id="Snippet2":::
4080+
:::code language="vb" source="~/snippets/visualbasic/System/Math/LogMethod/log1.vb" id="Snippet2":::
40834081

40844082
]]></format>
40854083
</remarks>
@@ -4231,14 +4229,12 @@ Remainder = (Math.Abs(dividend) - (Math.Abs(divisor) *
42314229
## Remarks
42324230
This method calls into the underlying C runtime, and the exact result or valid input range may differ between different operating systems or architectures.
42334231

4234-
4235-
42364232
## Examples
42374233
The following example uses <xref:System.Math.Log%2A> to evaluate certain logarithmic identities for selected values.
42384234

42394235
:::code language="csharp" source="~/snippets/csharp/System/Math/LogMethod/loggen.cs" interactive="try-dotnet" id="Snippet1":::
42404236
:::code language="fsharp" source="~/snippets/fsharp/System/Math/LogMethod/loggen.fs" id="Snippet1":::
4241-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Math.Log_Overloads/VB/loggen.vb" id="Snippet1":::
4237+
:::code language="vb" source="~/snippets/visualbasic/System/Math/LogMethod/loggen.vb" id="Snippet1":::
42424238

42434239
]]></format>
42444240
</remarks>

0 commit comments

Comments
 (0)