C# for Java Developers by Jones Allen Freeman Adam & Adam Freeman

C# for Java Developers by Jones Allen Freeman Adam & Adam Freeman

Author:Jones, Allen, Freeman, Adam & Adam Freeman [Allen Jones]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / C#
ISBN: 9780735645844
Publisher: Microsoft Press
Published: 2010-04-18T16:00:00+00:00


To protect a static method or variable, the use of this is not available, but it’s possible to use the return from typeof(MyClass).

Waiting and Notifying

In Java, the Object class contains the methods wait, notify, and notifyAll. The .NET Object class doesn’t contain the equivalent methods, but the System.Threading.Monitor class exposes the required functionality, as detailed in Table 13-4.

Table 13-4. Mapping the Java Object Class Threading Methods to .NET

Java

.NET

Object.wait()

Monitor.Wait(object)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.