base-class
MVC3 passing base class to partial View - submitting form only has parent class values
I have a number of child ViewModel classes which inherit from an base ViewModel class. I pass my child ViewModel into my View, which then passes itse开发者_Go百科lf into a partial view.[详细]
2023-03-11 16:14 分类:问答Order of calling base class constructor from derived class initialization list
struct B { int b1, b2; B(int, int); }; struct D : B { 开发者_开发问答int d1, d2; // which is technically better ?[详细]
2023-03-10 09:16 分类:问答Inheritance base class reference C#
class Base { //... public int i = 5; } class Drifted : Base { //... public int b = 10; } Base ObjectOrReference = new Drifted();[详细]
2023-03-06 17:39 分类:问答How to restrict overrided property to be read only
I am having following code. class A { public virtual int BoardSize { get; set; } } class B : A { p开发者_运维技巧ublic override int BoardSize[详细]
2023-03-05 06:38 分类:问答Entity Framework 4.1 Code First: Get all Entities with a specific base class
I have a DbContext with set up different DbSet<T>s with all types that derive from the same base class:[详细]
2023-03-01 20:40 分类:问答Calling a Base Class Construtor in a function of Derived Class
I am trying to call a constructor of a Base Class in a function of Derived Class. Here is the code: Classes:[详细]
2023-02-21 17:46 分类:问答when to use multiple class libraries?
When should I use multiple class libr开发者_开发百科aries in .NET. I have a situation where I need to use the functionalities of Microsoft Office Object Model to check certain attributes of Microsoft[详细]
2023-02-18 15:15 分类:问答How to query for all base classes of a class at compile time?
With std::is_base_of<A,B>::value one can check if a class A is a base class of class B. Is it also possible to query the compiler for all base classes of a class[详细]
2023-02-16 04:24 分类:问答In C# how do I declare a base class as being private?
I know how to do this in C++: class myClass : public baseClass1 private baseClass2 ... How do I do likewise in C#?[详细]
2023-02-14 18:42 分类:问答Generating member types for containers
When I define my own containers, I have to provide a dozen of member types, for example: typedef T& reference;[详细]
2023-02-13 08:57 分类:问答