
How can we know a state of a thread? (A) What is use of Interlocked class ? (A) What is a monitor object? (A) What are wait handles? (A) What is ManualResetEvent and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does the remote object has to inherit? (I) what are two different types of remote Cache substitution? Chapter 6: OOPS (B) What is Object Oriented Programming? (B) What is a Class? (B) What is an Object? (A) What is the relation between Classes and Objects? (B Overriding? (I) what is the difference between delegate and events? (B) If we inherit a class do the private variables also get inherited? (B) What is the different accessibility levels defined in .NET? (I) Can you prevent a class from overriding? (I) what is the use of “Must inherit” keyword in VB.NET? (I Do interface have accessibility modifier. (A) What are similarities between Class and structure? (A) What is the difference between Class and structure’s? (B) What does virtual keyword mean? (B) What are shared (VB.NET property ? (I) If we write a goto or a return statement in try and catch block will the finally block execute? (A) What is Indexer? (A) Can we have static indexer
Interface and Abstract Class Hai, When do we go for Interface. . When do we go for Abstract Class. . .Give one example Today i faced one interview . . He asked this question.I want answer with Example Thanks in Advance Abstract Class :: - It cannot defines all the methods - It has subclass. - Here, Subclass is useless - A class can be extend an abstract class Interface :: - It defines all the methods - It must have implementations by other classes, But there http: / / kyapoocha.com / c-sharp-interview-questions / what%E2%80%99s-the-difference-between-an-interface-and-abstract-class-5 / http: / / www.dotnetuncle.com / Difference / 4_abstract_class_interface.aspx Hope this helps. HI An interface contains signatures of methods , delegates or events . The implementation of the methods is done in the class that implements the interface, as shown in the following example: interface ISampleInterface { void SampleMethod(); } class ImplementationClass : ISampleInterface { / / Explicit interface member implementation: void ISampleInterface.SampleMethod() { / / Method implementation. } static void Main() { / / Declare
attribute like Summary, Keyword, Title, Author. . .etc. . . . without storing on the server. . . . Thanks, Arth <pre class = "csharpcode" > <pre <span class = "kwrd" > class < / span> = <span class = "str" > "csharpcode" < / span> >&lt;pre <span <span class = "kwrd" > class < / span> = <span class = "str" > "kwrd" < / span> ><span class = "kwrd" > class < / span> < / span> = <span <span class = "kwrd" > class < / span> = <span class
cannot be used with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example a. Static int var / / in c#.net b. static void theory this allows very tight interop between different .NET languages - for example allowing a C# class to inherit from a VB class. • 07. What is IL? • Ans : IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate Language to in the context of Managed Extensions (ME) for C++. When using ME C++, a class can be marked with the _ _gc keyword. As the name suggests, this means that the memory for instances of the class is managed by the garbage collector, but it also means more than that. The class becomes a fully paid-up member of the .NET community with the benefits and restrictions benefit is proper interop with classes written in other languages - for example, a managed C++ class can inherit from a VB class. An example of a restriction is that a managed
on working on capturing the remote desktop client display? I have dugg down to its class "OPWindowClass" or the "Output Painter Window" object, but still cant get the entire image. hi on csharpfriends. :D and this guy "muster" whatever . . gave you a link to that downloadable class. . I get your idea now . . ;) using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace ClientSide { class PlatformInvokeUSER32 { #region Class Variables public const int SM_CXSCREEN = 0; public const int SM_CYSCREEN = 1; #endregion #region Class Functions [DllImport( "user32.dll" , EntryPoint = "GetDesktopWindow" )] public static extern IntPtr GetDesktopWindow(); [DllImport( "user32.dll" , EntryPoint = "GetDC" )] public static extern IntPtr GetDC(IntPtr ptr); [DllImport( "user32.dll" , EntryPoint = "GetSystemMetrics" )] public static extern int GetSystemMetrics( int abc); [DllImport( "user32