Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: 2 not so # things Pin
Nick Parker11-Jul-03 18:30
protectorNick Parker11-Jul-03 18:30 
GeneralRe: 2 not so # things Pin
leppie11-Jul-03 18:45
leppie11-Jul-03 18:45 
GeneralRe: 2 not so # things Pin
Nick Parker12-Jul-03 5:26
protectorNick Parker12-Jul-03 5:26 
GeneralRe: 2 not so # things Pin
Heath Stewart11-Jul-03 18:31
protectorHeath Stewart11-Jul-03 18:31 
GeneralRe: 2 not so # things Pin
leppie11-Jul-03 19:29
leppie11-Jul-03 19:29 
GeneralRe: 2 not so # things Pin
Heath Stewart12-Jul-03 0:41
protectorHeath Stewart12-Jul-03 0:41 
GeneralRe: 2 not so # things Pin
James T. Johnson11-Jul-03 18:57
James T. Johnson11-Jul-03 18:57 
GeneralRe: 2 not so # things Pin
Heath Stewart11-Jul-03 18:21
protectorHeath Stewart11-Jul-03 18:21 
leppie wrote:
1. Why cant you have a "params" parameter for the constructor of an attribute?

You can. I've been doing it in our app for over a year (soon after the 1.0 release was released; never tried it before that). The following should work:
public class MyAttributeAttribute : Attribute
{
    private string[] parms;
    public MyAttributeAttribute(params string[] parms)
    {
        this.parms = parms;
    }
}

It works for me. Perhaps a code snippet would help.


leppie wrote:
2. Why do you have to provide a constructor in an inherited abstract class where the base class does not have a default constructor?

Just to clarify, is the abstract class being inherited, or does it inherit from another class? If the latter is the case, is the base class also abstract?

 

Reminiscent of my younger years...
10 LOAD "SCISSORS"
20 RUN

GeneralRe: 2 not so # things Pin
leppie11-Jul-03 18:29
leppie11-Jul-03 18:29 
GeneralOK, slap me silly and call me Susan - NOT Pin
leppie11-Jul-03 18:49
leppie11-Jul-03 18:49 
GeneralRe: 2 not so # things Pin
leppie11-Jul-03 19:40
leppie11-Jul-03 19:40 
GeneralRe: 2 not so # things Pin
Heath Stewart12-Jul-03 0:15
protectorHeath Stewart12-Jul-03 0:15 
GeneralRe: 2 not so # things Pin
leppie12-Jul-03 1:54
leppie12-Jul-03 1:54 
GeneralTooltips Pin
Nnamdi Onyeyiri11-Jul-03 12:25
Nnamdi Onyeyiri11-Jul-03 12:25 
GeneralRe: Tooltips Pin
Nick Parker11-Jul-03 18:33
protectorNick Parker11-Jul-03 18:33 
GeneralRe: Tooltips Pin
Nnamdi Onyeyiri11-Jul-03 23:27
Nnamdi Onyeyiri11-Jul-03 23:27 
GeneralServer Certificates Pin
Jeff Phillips11-Jul-03 8:36
Jeff Phillips11-Jul-03 8:36 
GeneralRe: Server Certificates Pin
Heath Stewart11-Jul-03 8:46
protectorHeath Stewart11-Jul-03 8:46 
GeneralCan't find namespace Pin
Shaun Becker11-Jul-03 5:38
Shaun Becker11-Jul-03 5:38 
GeneralRe: Can't find namespace Pin
Heath Stewart11-Jul-03 6:16
protectorHeath Stewart11-Jul-03 6:16 
GeneralRe: Can't find namespace Pin
Shaun Becker11-Jul-03 11:39
Shaun Becker11-Jul-03 11:39 
GeneralRe: Can't find namespace Pin
Heath Stewart11-Jul-03 12:10
protectorHeath Stewart11-Jul-03 12:10 
GeneralRe: Can't find namespace Pin
Anonymous12-Jul-03 1:06
Anonymous12-Jul-03 1:06 
GeneralProgram containing large struct arrays Pin
Mike_V11-Jul-03 4:59
Mike_V11-Jul-03 4:59 
GeneralRe: Program containing large struct arrays Pin
Stephane Rodriguez.11-Jul-03 11:57
Stephane Rodriguez.11-Jul-03 11:57 

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.