Quantcast
Channel: Answers for "How to Skip Parameter in C#"
Browsing all 5 articles
Browse latest View live

Answer by Dave Carlile

There are a couple of ways you can do this. Default parameters: protected void BypassSubtitle( string text, float duration, bool differentColor = false, Color newColor = Color.white); // edit: it turns...

View Article



Answer by felix11

I don't know if I understand the Question but why don't you make your Method virtual and override it? Or just Overload it: protected void BypassSubtitle(string text, float duration, Color newColor) {...

View Article

Answer by felix11

Sorry, that didn't work, let me try again: public Class YourClass { protected void BypassSubtitle(string text, float duration, Color newColor) { //Code1 } protected void BypassSubtitle(string text,...

View Article

Answer by Dave-Carlile

There are a couple of ways you can do this. Default parameters: protected void BypassSubtitle( string text, float duration, bool differentColor = false, Color newColor = Color.white); // edit: it turns...

View Article

Answer by felix11

Sorry, that didn't work, let me try again: public Class YourClass { protected void BypassSubtitle(string text, float duration, Color newColor) { //Code1 } protected void BypassSubtitle(string text,...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images