Skip to content

Commit 09a5c0e

Browse files
committed
delete C++ snippet refs in System.CodeDom
1 parent d0b3c59 commit 09a5c0e

File tree

80 files changed

+2629
-2853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2629
-2853
lines changed

xml/System.CodeDom.Compiler/CodeDomProvider.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
## Examples
6969
The following example program can generate and compile source code based on a CodeDOM model of a program that prints "Hello World" using the <xref:System.Console> class. A Windows Forms user interface is provided. The user can select the target programming language from several selections: C#, Visual Basic, and JScript.
7070
71-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDomExample/CPP/source.cpp" id="Snippet1":::
7271
:::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeCompileUnit/Overview/source.cs" id="Snippet1":::
7372
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDomExample/VB/source.vb" id="Snippet1":::
7473
@@ -716,7 +715,6 @@
716715
## Examples
717716
The following code example determines the <xref:System.CodeDom.Compiler.CodeDomProvider> implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CompilerInfo> class.
718717
719-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet6":::
720718
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet6":::
721719
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
722720
@@ -892,7 +890,6 @@
892890
## Examples
893891
The following code example creates an instance of <xref:Microsoft.VisualBasic.VBCodeProvider?displayProperty=nameWithType>. The example displays the provider name, hash code and default file name extension for the new provider instance.
894892
895-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet3":::
896893
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet3":::
897894
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet3":::
898895
@@ -950,7 +947,6 @@
950947
## Examples
951948
The following code example shows the use of the <xref:System.CodeDom.Compiler.CodeDomProvider.GenerateCodeFromCompileUnit%2A> method to generate code for a "Hello World" application from a <xref:System.CodeDom.CodeCompileUnit>. This example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CodeDomProvider> class.
952949
953-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDomExample/CPP/source.cpp" id="Snippet3":::
954950
:::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeCompileUnit/Overview/source.cs" id="Snippet3":::
955951
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDomExample/VB/source.vb" id="Snippet3":::
956952
@@ -1299,7 +1295,6 @@
12991295
## Examples
13001296
The following code example enumerates the language providers on the computer and displays the configuration and compiler settings for each language provider. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CompilerInfo> class.
13011297
1302-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet8":::
13031298
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet8":::
13041299
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet8":::
13051300
@@ -1367,7 +1362,6 @@
13671362
## Examples
13681363
The following code example determines the <xref:System.CodeDom.Compiler.CodeDomProvider> implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CompilerInfo> class.
13691364
1370-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet6":::
13711365
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet6":::
13721366
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
13731367
@@ -1484,7 +1478,6 @@
14841478
## Examples
14851479
The following code example determines the <xref:System.CodeDom.Compiler.CodeDomProvider> implementation for an input file name extension and displays the configured settings for the language provider. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CompilerInfo> class.
14861480
1487-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet5":::
14881481
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet5":::
14891482
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet5":::
14901483
@@ -1602,7 +1595,6 @@
16021595
## Examples
16031596
The following code example determines the <xref:System.CodeDom.Compiler.CodeDomProvider> implementation for an input file name extension and displays the configured settings for the language provider. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CompilerInfo> class.
16041597
1605-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet5":::
16061598
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet5":::
16071599
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet5":::
16081600
@@ -1669,7 +1661,6 @@
16691661
## Examples
16701662
The following code example determines the <xref:System.CodeDom.Compiler.CodeDomProvider> implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CompilerInfo> class.
16711663
1672-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet6":::
16731664
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet6":::
16741665
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
16751666

xml/System.CodeDom.Compiler/CodeGeneratorOptions.xml

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,24 @@
3333
<Docs>
3434
<summary>Represents a set of options used by a code generator.</summary>
3535
<remarks>
36-
<format type="text/markdown"><![CDATA[
37-
38-
## Remarks
39-
<xref:System.CodeDom.Compiler.CodeGeneratorOptions> is passed to the code generation methods of an <xref:System.CodeDom.Compiler.ICodeGenerator> implementation to specify options used during code generation.
40-
41-
The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.IndentString%2A> property specifies the string to use for each spacing indentation. The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.BracingStyle%2A> property specifies the placement style for braces indicating the boundaries of code blocks. The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.ElseOnClosing%2A> property specifies whether to append an `else`, `catch`, or `finally` block, including brackets, at the closing line of each `if` or `try` block. The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.BlankLinesBetweenMembers%2A> property specifies whether to insert blank lines between members.
42-
43-
An <xref:System.CodeDom.Compiler.ICodeGenerator> implementation can provide custom code generation options which you can set or pass data to using the <xref:System.CodeDom.Compiler.CodeGeneratorOptions.Item%2A> dictionary indexer, which a code generator can search through to locate additional code generation options.
44-
36+
<format type="text/markdown"><![CDATA[
37+
38+
## Remarks
39+
<xref:System.CodeDom.Compiler.CodeGeneratorOptions> is passed to the code generation methods of an <xref:System.CodeDom.Compiler.ICodeGenerator> implementation to specify options used during code generation.
40+
41+
The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.IndentString%2A> property specifies the string to use for each spacing indentation. The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.BracingStyle%2A> property specifies the placement style for braces indicating the boundaries of code blocks. The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.ElseOnClosing%2A> property specifies whether to append an `else`, `catch`, or `finally` block, including brackets, at the closing line of each `if` or `try` block. The <xref:System.CodeDom.Compiler.CodeGeneratorOptions.BlankLinesBetweenMembers%2A> property specifies whether to insert blank lines between members.
42+
43+
An <xref:System.CodeDom.Compiler.ICodeGenerator> implementation can provide custom code generation options which you can set or pass data to using the <xref:System.CodeDom.Compiler.CodeGeneratorOptions.Item%2A> dictionary indexer, which a code generator can search through to locate additional code generation options.
44+
4545
> [!NOTE]
46-
> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)).
47-
48-
49-
50-
## Examples
51-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeGeneratorOptionsExample/CPP/class1.cpp" id="Snippet1":::
46+
> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)).
47+
48+
49+
50+
## Examples
5251
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeGeneratorOptions/Overview/class1.cs" id="Snippet1":::
53-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeGeneratorOptionsExample/VB/class1.vb" id="Snippet1":::
54-
52+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeGeneratorOptionsExample/VB/class1.vb" id="Snippet1":::
53+
5554
]]></format>
5655
</remarks>
5756
</Docs>
@@ -153,11 +152,11 @@
153152
<summary>Gets or sets the style to use for bracing.</summary>
154153
<value>A string containing the bracing style to use.</value>
155154
<remarks>
156-
<format type="text/markdown"><![CDATA[
157-
158-
## Remarks
159-
The default value of this property is `Block`, which indicates that code should be generated so that braces start on the same line as the statement or declaration that they are associated with. A property value of `C` indicates that braces start on the line following the statement or declaration that they are associated with.
160-
155+
<format type="text/markdown"><![CDATA[
156+
157+
## Remarks
158+
The default value of this property is `Block`, which indicates that code should be generated so that braces start on the same line as the statement or declaration that they are associated with. A property value of `C` indicates that braces start on the line following the statement or declaration that they are associated with.
159+
161160
]]></format>
162161
</remarks>
163162
</Docs>
@@ -229,11 +228,11 @@
229228
<summary>Gets or sets the string to use for indentations.</summary>
230229
<value>A string containing the characters to use for indentations.</value>
231230
<remarks>
232-
<format type="text/markdown"><![CDATA[
233-
234-
## Remarks
235-
The default value of this property is "/----/" (four spaces).
236-
231+
<format type="text/markdown"><![CDATA[
232+
233+
## Remarks
234+
The default value of this property is "/----/" (four spaces).
235+
237236
]]></format>
238237
</remarks>
239238
</Docs>
@@ -274,11 +273,11 @@
274273
<summary>Gets or sets the object at the specified index.</summary>
275274
<value>The object associated with the specified name. If no object associated with the specified name exists in the collection, <see langword="null" />.</value>
276275
<remarks>
277-
<format type="text/markdown"><![CDATA[
278-
279-
## Remarks
280-
This dictionary provides an extensibility mechanism for developers to provide data for custom features of a code generator. A code generator must implement such features and support checking the dictionary for this to be useful.
281-
276+
<format type="text/markdown"><![CDATA[
277+
278+
## Remarks
279+
This dictionary provides an extensibility mechanism for developers to provide data for custom features of a code generator. A code generator must implement such features and support checking the dictionary for this to be useful.
280+
282281
]]></format>
283282
</remarks>
284283
</Docs>
@@ -321,11 +320,11 @@
321320
<value>
322321
<see langword="true" /> to generate the members in the order in which they occur in the member collection; otherwise, <see langword="false" />. The default value of this property is <see langword="false" />.</value>
323322
<remarks>
324-
<format type="text/markdown"><![CDATA[
325-
326-
## Remarks
327-
The default generates members by their type, for example; field, member, constructor, or property. A code generator can use the <xref:System.CodeDom.Compiler.CodeGeneratorOptions.VerbatimOrder%2A> property to inject #region blocks into code, thus changing the order.
328-
323+
<format type="text/markdown"><![CDATA[
324+
325+
## Remarks
326+
The default generates members by their type, for example; field, member, constructor, or property. A code generator can use the <xref:System.CodeDom.Compiler.CodeGeneratorOptions.VerbatimOrder%2A> property to inject #region blocks into code, thus changing the order.
327+
329328
]]></format>
330329
</remarks>
331330
</Docs>

xml/System.CodeDom.Compiler/CompilerError.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
## Examples
5454
The following example compiles a CodeDOM program graph and provides an example of how to programmatically access CompilerError data.
5555
56-
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_Classic/classic CompilerError Example/CPP/source.cpp" id="Snippet1":::
5756
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CompilerError/Overview/source.cs" id="Snippet1":::
5857
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_Classic/classic CompilerError Example/VB/source.vb" id="Snippet1":::
5958

0 commit comments

Comments
 (0)