Click here to Skip to main content
15,916,702 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralConfused: DataGrid tied to DataTable, new row added to DG not appearing in DT Pin
no_spoon15-Jan-05 5:29
no_spoon15-Jan-05 5:29 
GeneralRe: Confused: DataGrid tied to DataTable, new row added to DG not appearing in DT Pin
Robert Rohde15-Jan-05 19:25
Robert Rohde15-Jan-05 19:25 
GeneralRe: Confused: DataGrid tied to DataTable, new row added to DG not appearing in DT Pin
no_spoon16-Jan-05 10:52
no_spoon16-Jan-05 10:52 
QuestionHow to rotate button text 90 degrees? Pin
pyanfur14-Jan-05 8:57
pyanfur14-Jan-05 8:57 
GeneralProblem drawing outline of Regions. Pin
Morrgan14-Jan-05 3:07
Morrgan14-Jan-05 3:07 
GeneralHelp pls with CScrollView and CMetaFileDC Pin
Dimitris Vikeloudas14-Jan-05 0:45
Dimitris Vikeloudas14-Jan-05 0:45 
GeneralCalling CDialog C++ code from C# Pin
gabnicu13-Jan-05 23:49
gabnicu13-Jan-05 23:49 
GeneralTypes system in .NET Pin
Paul Selormey13-Jan-05 18:58
Paul Selormey13-Jan-05 18:58 
There is many things in the design of the .NET type system
I do not understand why it should be like that:

  1. Why are we not allowed to provide parameterless constructors
    for value types? (I find it a large limitation, since I sometimes
    need defaults/initialization other than the process provides)/li>
  2. Why is the ValueType derived from Object?
  3. Since the derivation of ValueType from Object, makes it a class why boxing?
  4. Why is "ValueTypeArray" not provided instead of just Array for everything?
  5. Why is there no common base ValueType for numerics/numbers?


I recently found myself writing a class like,
public class TestClass
{
    private ValueType m_valueMax;

 public TestClass(ValueType value)
 {
        m_valueMax = value;
 }

    public ValueType Value 
    {
        get
        {
            return m_valueMax;
        }
    }
}

instead of
public class TestClass
{
    private object m_valueMax;

 public TestClass(object value)
 {
        m_valueMax = value;
 }

    public object Value 
    {
        get
        {
            return m_valueMax;
        }
    }
}

because I simply needed a number to be passed it, and do not
need to be doing stuff like
if (value == null)
    throw new ArgumentNullException("value");

Best regards,
Paul

Jesus Christ is LOVE! Please tell somebody.
GeneralWeb service causes WinForm design mode problems Pin
Jon Rista13-Jan-05 15:52
Jon Rista13-Jan-05 15:52 
GeneralStrange problem with open/save file dialogs Pin
satorical13-Jan-05 12:13
satorical13-Jan-05 12:13 
GeneralRe: Strange problem with open/save file dialogs Pin
JoshWilliams5-Jan-23 10:42
JoshWilliams5-Jan-23 10:42 
QuestionMake windows go standby? Pin
Søren Alsbjerg Hørup13-Jan-05 8:39
Søren Alsbjerg Hørup13-Jan-05 8:39 
AnswerRe: Make windows go standby? Pin
Colin Angus Mackay15-Jan-05 12:05
Colin Angus Mackay15-Jan-05 12:05 
Generalhelp on openwith dialog Pin
deepakskumar12-Jan-05 21:20
deepakskumar12-Jan-05 21:20 
Generalmultiple frames in VS Pin
brian5512-Jan-05 16:55
brian5512-Jan-05 16:55 
General.NET 2.0 Socket.SupportsIPv6 Pin
Matt Newman11-Jan-05 11:28
Matt Newman11-Jan-05 11:28 
GeneralRe: .NET 2.0 Socket.SupportsIPv6 Pin
Mike Dimmick12-Jan-05 12:01
Mike Dimmick12-Jan-05 12:01 
QuestionConfused: Bytes Instead of float or Int? Pin
bigals11-Jan-05 11:27
bigals11-Jan-05 11:27 
AnswerRe: Confused: Bytes Instead of float or Int? Pin
Robert Rohde11-Jan-05 19:06
Robert Rohde11-Jan-05 19:06 
GeneralRe: Confused: Bytes Instead of float or Int? Pin
bigals12-Jan-05 11:08
bigals12-Jan-05 11:08 
GeneralProtecting DLL's Pin
bigals11-Jan-05 9:18
bigals11-Jan-05 9:18 
GeneralPropertyGrid Control - Displaying Name property. Pin
Nigel Savidge11-Jan-05 1:17
Nigel Savidge11-Jan-05 1:17 
GeneralChat Channel Sample Pin
zeemalik11-Jan-05 1:00
zeemalik11-Jan-05 1:00 
GeneralRegex Help wanted Pin
Usur10-Jan-05 22:07
Usur10-Jan-05 22:07 
GeneralRunning Application with GUI from a .NET Service Pin
Control Vertex10-Jan-05 18:30
sussControl Vertex10-Jan-05 18:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.