Ask a FAQ Question

Ask a FAQ Question

Rate This

Do you have a FAQ about:

  • The C# Language or compiler
  • The C# IDE
  • The Visual Studio debugger

Reply to this post, and your question will be added to our list to be answered. Of course, depending on the nature of your comment, and the volume we receive, we may not get to every question.

Note that if your question is not about C# specifically (if it is, for example, a Windows Forms question or a general question about the .NET Framework), it would be better to post that question to a newsgroup or web forum. Visit http://msdn.microsoft.com/vcsharp/community/ for a listing of related resources.

Thanks!

Leave a Comment
  • Please add 6 and 8 and type the answer here:
  • Post
  • I would like to know how to fix my color pixels on monitor and please don't tell me to follow the help because I have been through them steps so many times that I know them by heart what I really want to know is there a fix it program or does any one have any ideal on how to fix this problem because I have been on this for a month.The slider will not work to where I can change the pixels in my display area so please if any one can help I would be very greatful because I don't have the money to pay to have it fix the computer was gave to me so I am trying to fix it my self

    Thank you
    Sandy Pegram
  • I would like to know how to fix my color pixels on monitor and please don't tell me to follow the help because I have been through them steps so many times that I know them by heart what I really want to know is there a fix it program or does any one have any ideal on how to fix this problem because I have been on this for a month.The slider will not work to where I can change the pixels in my display area so please if any one can help I would be very greatful because I don't have the money to pay to have it fix the computer was gave to me so I am trying to fix it my self

    Thank you
    Sandy Pegram
  • I'm curious to know why the C# team left out the IsNumeric function from C#? This is a very commonly used function, and I would like to know the reason for omitting this from the C# language? It is catered for in VB.NET, but why not C#? Is there a significant reason?
  • Hi,

    I would like to know the maximum limit of the number of elements I can add into a Hashtable before performance begins to degrade ? Specifically, I need to add around 150,000 elements into a Hashtable object. Would Hashtable still be able to handle that ?
  • I try to upgrade my VB6 program part by part. Could you send a sample to me on "how to create an ActiveX Control with C#?" Or just tell me how to do it.

    Thank you,

    Waiman
  • why does an object finalize (or a destructor) method need to call it's base class finalizer?

    thanks!
  • MSPress produce a software package "Visual C#.Net 2003 Standard Software" and separately a book and software package "Visual C#.Net De Luxe Learning Edition 2003" containing waht appears to be the above software plus the Visual C#,Net Step by Step book.
    What do the two different software packages contain? How do they differ? The book package is priced lower than the software alone which makes more attractive.

    Derek
  • Does Class WebClient Support Cookies and how to do?
    Thanks
  • how is one supposed to deal with float exception?

    in c#, float operations don't throw exceptions. thats just like it has been /w c/c++ for ages.

    thus, when developing math intensive apps, we used to turn on math exceptions so errors are emmediately visible when they happen. (for example, you _allways_ want a divide by zero or any other operation that results in #inf, #nan or suchliche to throw an exception).

    this works great in c++/c rtl.

    however, stuff in the bcl is using the 'c# does not throw exceptions' as a feature. for example, the font ctor throws an exception when exceptions are turned on.

    iow: it has to be expected that bcl objects are using invalid float values as a means for normal operations.

    this renders math exceptions useless for use in applications that rely heavily on math operations.

    currently, when entering native c++ code from c# code, we turn exceptions on, turning they off when going back to managed code.

    but how is one supposed to deal with this in managed c# code? checking every input data everywhere for validity simply is not an option when you have one gazillion lines of math code - thats what math exceptions are for after all: they are thrown in 'exceptional' situations that have not been tested for with other means. only - not whilst inside managed c#. what gives?

    WM_QUERY
    thomas woelfer

  • I find MS pages to be long on information and choices and short on organization.

    Can you tell me the relationship between Visual Studio and Visual C#? I want to develop using C#. I went to MSDN and downloaded the runtime .net and the .net sdk 1.1. I want to use the IDE and looked on MSDN pages.

    I hear Visual Studio and Visual C# but do not see relationship. I am guessing the Visual C# is a subset of Visual Studio, but I have no idea.

    What do I need to develop .net application with .net IDE?

    Thanks,
    John
  • Why do method signatures have to differ by arguments to create overloads? Why can't the return value make it unique?

    Example

    // Base Class
    function bool Foo(int myVal)
    { }

    // Derived Class that gets compile error
    function int Foo(int myVal)
    {}

    // Derived Class with no error
    function bool Foo(string myOtherVal)
    {}
  • is there any limit for classes in a dll in .Net environment. If there is a limit then how many classes can be there in a .dll

  • How to customize PrintPreviewDialog in C# such that addition of a button, deliting existing control and changing functionality of existing control should be possible. Sample code will help me a lot
    regards
  • I have a question about overriding Object.Equals() and Object.GetHashCode()

    I posted about this at my blog (http://weblogs.asp.net/jgonzalez/archive/2004/04/22/118312.aspx) but I haven't gotten the answer I am looking for.

    When I override the Equals method I get a compiler warning telling me I should consider overriding GetHashCode as well.

    I understand that there are a few rules in respect to GetHashCode.

    Rule #1 - If two objects of the same type represent the same value, the hash function must return the same constant value for either object.

    Rule #2 - For the best performance, a hash function must generate a random based on instance fields (preferrably immutable fields)

    Rule #3 - The hash function must return exactly the same value regardless of any changes that are made to the object.

    I seems to me that Rule #1 and Rule #3 compete with each other. If my classes do not have immutable instance fields, should I still worry about overriding GetHashCode?

    I have noticed some classes seem to implement a method for calculating a hashcode (System.Uri for example), but I am unclear on when/if I should consider overriding the GetHashCode method.
  • Is there any difference between the following in terms of performance or generated IL?

    class A
    {
    int i = 4;

    public A()
    {
    }
    }

    and

    class B
    {
    int i;

    public B()
    {
    i = 4;
    }
    }
Page 7 of 13 (194 items) «56789»