<< < 23 24 25 26 27 28 29 30 31 32 33 > >>   Sort: Date

Describe the advantages of writing a managed code application instead of unmanaged one. What’s involved in certain piece of co
Describe the advantages of writing a managed code application instead of unmanaged one. What’s involved in certain piece of code being managed? The advantages include automatic garbage collection, memory management, support for versioning and security. These advantages are provided through .NET F...
2014-11-19, 2350👍, 0💬

The property that indicates whether existing database constraints should be observed when performing updates
The property that indicates whether existing database constraints should be observed when performing updates The property that indicates whether existing database constraints should be observed when performing updates * EnforceConstraints * Constraints * GetConstraints * ConstraintsEnforce EnforceCo...
2014-07-30, 2330👍, 0💬

Can you have two files with the same file name in GAC?
Can you have two files with the same file name in GAC? Yes, remember that GAC is a very special folder, and while normally you would not be able to place two files with the same name into a Windows folder, GAC differentiates by version number as well, so it’s possible for MyApp.dll and MyApp.dll ...
2014-12-29, 2325👍, 0💬

Where’s global assembly cache located on the system?
Where’s global assembly cache located on the system? Usually C:\winnt\assembly or C:\windows\assembly.
2014-12-22, 2301👍, 0💬

How do you create thread in.NET?
How do you create thread in.NET? 1) Import System.Threading 2) Create a new thread using new Thread() and assign the address of the method 3) Use Thread.Start method to start the execution using System; using System.Threading; public class Test { static void Main() { ThreadStart job = new ThreadStar...
2014-11-19, 2280👍, 0💬

What is .NET?
What is .NET? .NET is essentially a framework for software development.It is similar in nature to any other software development framework (J2EE etc) in that it provides a set of runtime containers/capabilities, and a rich set of pre-built functionality in the form of class libraries and APIs The .N...
2013-09-26, 2275👍, 0💬

The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is ...
The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is ... The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is * Server.Transfer() * Server.Redirect() * Server.Execute() * Server.Re...
2014-06-18, 2272👍, 0💬

I want to expose my .NET objects to COM objects. Is that possible?
I want to expose my .NET objects to COM objects. Is that possible? Yes, but few things should be considered first. Classes should implement interfaces explicitly. Managed types must be public. Methods, properties, fields, and events that are exposed to COM must be public. Types must have a public de...
2014-12-10, 2269👍, 0💬

Can you inherit a COM class in a .NET application?
Can you inherit a COM class in a .NET application? The .NET Framework extends the COM model for reusability by adding implementation inheritance. Managed types can derive directly or indirectly from a COM coclass; more specifically, they can derive from the runtime callable wrapper generated by the ...
2014-12-10, 2259👍, 0💬

Why is catch(Exception) almost always a bad idea?
Why is catch(Exception) almost always a bad idea? Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.
2014-02-24, 2258👍, 0💬

What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"?
What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"? When u compile a program using command line, u add the references using /r switch. When you compile a program using Visual Studio, it adds those references to our assembly, which a...
2013-10-24, 2228👍, 0💬

What is cyclomatic complexity and why is it important?
What is cyclomatic complexity and why is it important? Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally measure the complexity of a program. It directly measures the number of linearly independent paths through a program’s source code. ...
2014-02-18, 2220👍, 0💬

Can you retrieve complex data types like structs from the PInvoke calls?
Can you retrieve complex data types like structs from the PInvoke calls? Yes, just make sure you re-declare that struct, so that managed code knows what to do with it.
2014-12-08, 2194👍, 0💬

Which operator is used for connecting a event with a procedure in C#?
Which operator is used for connecting a event with a procedure in C#? Which operator is used for connecting a event with a procedure in C#? * += * = * both * none +=
2014-06-23, 2191👍, 0💬

How would one do a deep copy in .NET?
How would one do a deep copy in .NET? Answer1: System.Array.CopyTo() - Deep copies an Array Answer2: How would one do a deep copy in .NET? The First Approach. 1.Create a new instance. 2.Copy the properties from source instance to newly created instance. [Use reflection if you want to write a common ...
2014-02-26, 2191👍, 0💬

Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end?
Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end? COM methods report errors by returning HRESULTs; .NET methods report them by throwing exceptions. The runtime handles the transition between the two. Each exception class in the .NET Fr...
2014-12-15, 2188👍, 0💬

You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK
You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used? You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be ...
2014-03-17, 2185👍, 0💬

Contrast OOP and SOA. What are tenets of each
Contrast OOP and SOA. What are tenets of each Service Oriented Architecture. In SOA you create an abstract layer that your applications use to access various “services” and can aggregate the services. These services could be databases, web services, message queues or other sources. The Service...
2014-02-21, 2182👍, 0💬

Which DLL translate XML to SQL in IIS?
Which DLL translate XML to SQL in IIS? Sqlisapi.dll
2013-12-23, 2180👍, 0💬

Which one of the following objects is used to create a foreign key between two DataTables?
Which one of the following objects is used to create a foreign key between two DataTables? Which one of the following objects is used to create a foreign key between two DataTables? * DataRelation * DataRelationship * DataConstraint * DataKey DataRelation
2014-07-21, 2170👍, 0💬

What is a Manifest?
What is a Manifest? An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes. The assembly manifest can be stored in either a...
2013-10-08, 2164👍, 0💬

What type of code (server or client) is found in a Code-Behind class?
What type of code (server or client) is found in a Code-Behind class? C#
2014-01-16, 2159👍, 0💬

So can a COM object talk to a .NET object?
So can a COM object talk to a .NET object? Yes, through Runtime Callable Wrapper (RCW) or PInvoke.
2014-12-02, 2157👍, 0💬

What is an execution plan? When would you use it? How would you view the execution plan?
What is an execution plan? When would you use it? How would you view the execution plan? The Query Analyzer has a feature called Show Execution Plan. This option allows you to view the execution plan used by SQL Server’s Query Optimizer to actually execute the query. This option is available from...
2014-10-13, 2156👍, 0💬

<< < 23 24 25 26 27 28 29 30 31 32 33 > >>   Sort: Date