-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
294 changed files
with
9,003 additions
and
21,870 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Exiting the context | ||
|
||
The `exitContext` parameter has no effect unless this method is called from inside a nondefault managed context. The managed context can be nondefault if your thread is inside a call to an instance of a class derived from <xref:System.ContextBoundObject>. Even if you're currently executing a method on a class that isn't derived from <xref:System.ContextBoundObject>, like <xref:System.String>, you can be in a nondefault context if a <xref:System.ContextBoundObject> is on your stack in the current application domain. | ||
|
||
When your code is executing in a nondefault context, specifying `true` for `exitContext` causes the thread to exit the nondefault managed context (that is, to transition to the default context) before executing this method. The thread returns to the original nondefault context after the call to this method completes. | ||
|
||
Exiting the context can be useful when the context-bound class has the <xref:System.Runtime.Remoting.Contexts.SynchronizationAttribute> attribute. In that case, all calls to members of the class are automatically synchronized, and the synchronization domain is the entire body of code for the class. If code in the call stack of a member calls this method and specifies `true` for `exitContext`, the thread exits the synchronization domain, which allows a thread that's blocked on a call to any member of the object to proceed. When this method returns, the thread that made the call must wait to reenter the synchronization domain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
However, when calling the `String.Format` method, it's not necessary to focus on the particular overload that you want to call. Instead, you can call the method with an object that provides culture-sensitive or custom formatting and a [composite format string](/dotnet/standard/base-types/composite-formatting) that includes one or more format items. You assign each format item a numeric index; the first index starts at 0. In addition to the initial string, your method call should have as many additional arguments as it has index values. For example, a string whose format items have indexes of 0 and 1 should have 2 arguments; one with indexes 0 through 5 should have 6 arguments. The language compiler will then resolve your method call to a particular overload of the `String.Format` method. | ||
|
||
For more detailed documentation on using the `String.Format` method, see [Get started with the String.Format method](/dotnet/fundamentals/runtime-libraries/system-string-format#get-started-with-the-stringformat-method) and [Which method do I call?](/dotnet/fundamentals/runtime-libraries/system-string-format#which-method-do-i-call). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
However, when calling the `String.Format` method, it's not necessary to focus on the particular overload that you want to call. Instead, you can call the method with a [composite format string](/dotnet/standard/base-types/composite-formatting) that includes one or more format items. You assign each format item a numeric index; the first index starts at 0. In addition to the initial string, your method call should have as many additional arguments as it has index values. For example, a string whose format items have indexes of 0 and 1 should have 2 arguments; one with indexes 0 through 5 should have 6 arguments. The language compiler will then resolve your method call to a particular overload of the `String.Format` method. | ||
|
||
For more detailed documentation on using the `String.Format` method, see [Get started with the String.Format method](/dotnet/fundamentals/runtime-libraries/system-string-format#get-started-with-the-stringformat-method) and [Which method do I call?](/dotnet/fundamentals/runtime-libraries/system-string-format#which-method-do-i-call). |
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
snippets/cpp/VS_Snippets_CLR_System/system.string.ctor/cpp/sbyte_ctor1.cpp
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
snippets/csharp/System.Globalization/CultureInfo/CurrentCulture/Async1.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
snippets/csharp/System.Globalization/CultureInfo/CurrentCulture/Get1.cs
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
snippets/csharp/System.Globalization/CultureInfo/CurrentCulture/aspculture13.cs
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
snippets/csharp/System.Globalization/CultureInfo/CurrentCulture/changeculture11.cs
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
snippets/csharp/System.Globalization/CultureInfo/CurrentCulture/specific12.cs
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
snippets/csharp/System.Globalization/CultureInfo/CurrentUICulture/Async1.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
snippets/csharp/System.Globalization/CultureInfo/CurrentUICulture/Get1.cs
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
snippets/csharp/System.Globalization/CultureInfo/CurrentUICulture/currentuiculture1.cs
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
snippets/csharp/System.Globalization/CultureInfo/InvariantCulture/persist1.cs
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
snippets/csharp/System.Resources/MissingManifestResourceException/Overview/showdate.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.