Logo 
Search:

c programming Interview FAQs

Submit Interview FAQ
No Records Found!!!
Go Ahead and Post your Interview FAQ
Home » Interview FAQs » c programmingRSS Feeds
.Net Framework
Comments: 0

How does CAS work?

The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set.

For example, usi...
Posted By:Murad Bashara      Posted On: Mar 15

.Net Framework
Comments: 0

Can I create my own metadata attributes?

Yes. Simply derive a class from System.Attribute and mark it with the AttributeUsage attribute. For example:

[AttributeUsage(AttributeTargets.Class)]
public class InspiredByAttribute : System.Attribute
{
public string Insp...
Posted By:Devlan Jones      Posted On: Feb 10

.Net Framework
Comments: 0

XmlSerializer is throwing a generic "There was an error reflecting MyClass" error. How do I fin

Look at the InnerException property of the exception that is thrown to get a more specific error message.
Posted By:Shobhana R.      Posted On: Dec 11

.Net Framework
Comments: 0

Why am I getting an InvalidOperationException when I serialize an ArrayList?

XmlSerializer needs to know in advance what type of objects it will find in an ArrayList. To specify the type, use the XmlArrayItem attibute like this:

public class Person
{
public string Name;
public int Age;
}

...
Posted By:Carl Woods      Posted On: Dec 13

.Net Framework
Comments: 0

What are attributes?

There are at least two types of .NET attribute. The first type I will refer to as a metadata attribute - it allows some data to be attached to a class or method. This data becomes part of the metadata for the class, and (like other class metadata) ca...
Posted By:Adal Fischer      Posted On: Nov 23

.Net Framework
Comments: 0

I want to serialize instances of my class. Should I use XmlSerializer, SoapFormatter or BinaryF

It depends. XmlSerializer has severe limitations such as the requirement that the target class has a parameterless constructor, and only public read/write properties and fields can be serialized. However, on the plus side, XmlSerializer has good supp...
Posted By:Zoar Mizrachi      Posted On: Mar 20

.Net Framework
Comments: 0

How does CAS work?

The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set.

For example, usi...
Posted By:Murad Bashara      Posted On: Mar 15

.Net Framework
Comments: 0

Can I create my own metadata attributes?

Yes. Simply derive a class from System.Attribute and mark it with the AttributeUsage attribute. For example:

[AttributeUsage(AttributeTargets.Class)]
public class InspiredByAttribute : System.Attribute
{
public string Insp...
Posted By:Devlan Jones      Posted On: Feb 10

.Net Framework
Comments: 0

XmlSerializer is throwing a generic "There was an error reflecting MyClass" error. How do I fin

Look at the InnerException property of the exception that is thrown to get a more specific error message.
Posted By:Shobhana R.      Posted On: Dec 11

.Net Framework
Comments: 0

Why am I getting an InvalidOperationException when I serialize an ArrayList?

XmlSerializer needs to know in advance what type of objects it will find in an ArrayList. To specify the type, use the XmlArrayItem attibute like this:

public class Person
{
public string Name;
public int Age;
}

...
Posted By:Carl Woods      Posted On: Dec 13

.Net Framework
Comments: 0

What are attributes?

There are at least two types of .NET attribute. The first type I will refer to as a metadata attribute - it allows some data to be attached to a class or method. This data becomes part of the metadata for the class, and (like other class metadata) ca...
Posted By:Adal Fischer      Posted On: Nov 23

.Net Framework
Comments: 0

I want to serialize instances of my class. Should I use XmlSerializer, SoapFormatter or BinaryF

It depends. XmlSerializer has severe limitations such as the requirement that the target class has a parameterless constructor, and only public read/write properties and fields can be serialized. However, on the plus side, XmlSerializer has good supp...
Posted By:Zoar Mizrachi      Posted On: Mar 20

  51  52  53  54  55  56  57  58  59  60  61