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: xml/Microsoft.CSharp/CSharpCodeProvider.xml
+1-44Lines changed: 1 addition & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -40,18 +40,6 @@
40
40
41
41
This class provides methods that can be used to retrieve instances of the C# <xref:System.CodeDom.Compiler.ICodeGenerator> and <xref:System.CodeDom.Compiler.ICodeCompiler> implementations.
42
42
43
-
> [!NOTE]
44
-
> 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.
45
-
46
-
## Examples
47
-
The following example uses either the C# or Visual Basic code provider to compile a source file. The example checks the input file extension and uses the corresponding <xref:Microsoft.CSharp.CSharpCodeProvider> or <xref:Microsoft.VisualBasic.VBCodeProvider> for compilation. The input file is compiled into an executable file, and any compilation errors are displayed to the console.
48
-
49
-
> [!IMPORTANT]
50
-
> The `CompileAssemblyFrom*` methods aren't supported on .NET Core and .NET 5+. This example only runs on .NET Framework.
@@ -134,32 +122,6 @@ This class provides methods that can be used to retrieve instances of the C# <xr
134
122
<remarks>
135
123
<formattype="text/markdown">< element in the configuration file. You can identify the version of the <xref:Microsoft.CSharp.CSharpCodeProvider> you want to use by specifying the `<providerOption>` element, supplying "CompilerVersion" as the option name, and supplying the version number (for example, "v3.5") as the option value. You must precede the version number with a lower case "v". The following configuration file example demonstrates how to specify that version 3.5 of the C# code provider should be used.
The following example shows how to specify the compiler version when you create a new instance of the <xref:Microsoft.CSharp.CSharpCodeProvider> class.
@@ -172,10 +134,7 @@ In .NET Framework apps, you can obtain the value for `providerOptions` from the
172
134
<paramrefname="providerOptions" /> is <seelangword="null" />.</exception>
@@ -358,10 +317,8 @@ In .NET Framework apps, you can obtain the value for `providerOptions` from the
358
317
## Remarks
359
318
Members are generated differently depending on their context. For example, a method in an interface or a field in an enumeration is generated differently than a method or field on a class. This implementation generates code for a member in the class context.
360
319
361
-
362
-
363
320
## Examples
364
-
The following code example shows the use of the <xref:Microsoft.CSharp.CSharpCodeProvider.GenerateCodeFromMember*> method to create a code fragment to be used in a CodeDOM graph. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CodeDomProvider.GenerateCodeFromMember*> method of the <xref:System.CodeDom.Compiler.CodeDomProvider> class.
321
+
The following code example shows the use of the <xref:Microsoft.CSharp.CSharpCodeProvider.GenerateCodeFromMember*> method to create a code fragment to be used in a CodeDOM graph.
Copy file name to clipboardExpand all lines: xml/Microsoft.Win32.SafeHandles/SafeHandleMinusOneIsInvalid.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@
57
57
This class derives from the <xref:System.Runtime.InteropServices.SafeHandle?displayProperty=nameWithType> class. It describes the format of an invalid handle that uses a value of -1. Further derivations of this class (for example, file or registry handles) can specialize this further. See the <xref:Microsoft.Win32.SafeHandles.SafeFileHandle> class for an example of a class that derives from <xref:Microsoft.Win32.SafeHandles.SafeHandleMinusOneIsInvalid>.
58
58
59
59
> [!WARNING]
60
-
> This type implements the <xref:System.IDisposable> interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of the type directly, call its <xref:System.IDisposable.Dispose*> method in a `try`-`catch` block. To dispose of it indirectly, use a language construct such as `using` (in C#) or `Using` (in Visual Basic). For more information, see the "Using an Object that Implements IDisposable" section in the <xref:System.IDisposable> interface topic.
60
+
> This type implements the <xref:System.IDisposable> interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of the type directly, call its <xref:System.IDisposable.Dispose*> method in a `try`-`catch` block. To dispose of it indirectly, use a language construct such as `using` in C#.
Copy file name to clipboardExpand all lines: xml/Microsoft.Win32/FileDialog.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -813,7 +813,7 @@ Open and save file dialog boxes have a **Favorite Links** panel on the left side
813
813
<formattype="text/markdown"><![CDATA[
814
814
815
815
## Remarks
816
-
This value is the <xref:Microsoft.Win32.FileDialog.FileName*> with all path information removed. Removing the paths makes the value appropriate for use in partial trust applications, since it prevents applications from discovering information about the local file system.
816
+
This value is the <xref:Microsoft.Win32.FileDialog.FileName*> with all path information removed. Removing the paths prevents applications from discovering information about the local file system.
817
817
818
818
If more than one file name is selected (length of <xref:Microsoft.Win32.FileDialog.SafeFileNames*> is greater than one) then this property contains only the first selected file name.
Copy file name to clipboardExpand all lines: xml/Microsoft.Win32/OpenFileDialog.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ You cannot declare this managed class in XAML.
171
171
<formattype="text/markdown"><![CDATA[
172
172
173
173
## Remarks
174
-
The file is opened with read-only permission (<xref:System.IO.FileMode.Open>, <xref:System.IO.FileAccess.Read>, and <xref:System.IO.FileShare.Read>), whether or not the Read Only checkbox is checked in the dialog. Because the file is opened without the ability to overwrite or write to the file, an application can safely load a file while executing within partial trust restrictions.
174
+
The file is opened with read-only permission (<xref:System.IO.FileMode.Open>, <xref:System.IO.FileAccess.Read>, and <xref:System.IO.FileShare.Read>), whether or not the Read Only checkbox is checked in the dialog.
175
175
176
176
If more than one file is selected, the first selected file is opened.
177
177
@@ -211,7 +211,7 @@ You cannot declare this managed class in XAML.
211
211
<formattype="text/markdown"><![CDATA[
212
212
213
213
## Remarks
214
-
Each file is opened with read-only permission (<xref:System.IO.FileMode.Open>, <xref:System.IO.FileAccess.Read>, and <xref:System.IO.FileShare.Read>), whether or not the Read Only checkbox is checked in the dialog. Because each file is opened without the ability to overwrite or write to the file, an application can safely load one or more files while executing within partial trust restrictions.
214
+
Each file is opened with read-only permission (<xref:System.IO.FileMode.Open>, <xref:System.IO.FileAccess.Read>, and <xref:System.IO.FileShare.Read>), whether or not the Read Only checkbox is checked in the dialog.
0 commit comments