Click here to Skip to main content
15,884,537 members
Home / Discussions / C#
   

C#

 
AnswerRe: Glade errors after launching debug [Solved] Pin
Sascha Manns17-Jan-17 5:41
professionalSascha Manns17-Jan-17 5:41 
QuestionImplementing Strategy Pattern Pin
Liagapi16-Jan-17 22:20
Liagapi16-Jan-17 22:20 
AnswerRe: Implementing Strategy Pattern Pin
Pete O'Hanlon16-Jan-17 22:46
mvePete O'Hanlon16-Jan-17 22:46 
GeneralRe: Implementing Strategy Pattern Pin
Liagapi16-Jan-17 23:22
Liagapi16-Jan-17 23:22 
GeneralRe: Implementing Strategy Pattern Pin
harold aptroot16-Jan-17 23:05
harold aptroot16-Jan-17 23:05 
GeneralRe: Implementing Strategy Pattern Pin
Liagapi17-Jan-17 2:25
Liagapi17-Jan-17 2:25 
AnswerRe: Implementing Strategy Pattern Pin
F-ES Sitecore16-Jan-17 23:18
professionalF-ES Sitecore16-Jan-17 23:18 
GeneralRe: Implementing Strategy Pattern Pin
Liagapi16-Jan-17 23:28
Liagapi16-Jan-17 23:28 
Thank you for your time, I would not have known that the Strategy pattern isn't suited for my situation if you hadn't shared your thoughts.

Can you please explain why "the strategy pattern isn't that great for things that require different parameters". I've checked the definition of the Strategy pattern and there wasn't anything that says it shouldn't be used on situations that are similar to mine.

The following are part of the definition of the Strategy pattern I've found online.
* "Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it." (Gang of Four)

* "Specifies a set of classes, each representing a potential behaviour. Switching between those classes changes the application behaviour. (The Strategy)

From my perspective all of my classes which inherit from the ICalculateAreaStrategy interface have the same exact method and it takes the same exact number and type of parameter no matter which class it's used in.

modified 17-Jan-17 13:40pm.

GeneralRe: Implementing Strategy Pattern Pin
Bernhard Hiller17-Jan-17 23:21
Bernhard Hiller17-Jan-17 23:21 
AnswerRe: Implementing Strategy Pattern Pin
Gerry Schmitz17-Jan-17 5:48
mveGerry Schmitz17-Jan-17 5:48 
QuestionConvert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois16-Jan-17 13:18
professionalKevin Marois16-Jan-17 13:18 
AnswerRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Pete O'Hanlon16-Jan-17 22:52
mvePete O'Hanlon16-Jan-17 22:52 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 5:08
professionalKevin Marois17-Jan-17 5:08 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 5:54
professionalKevin Marois17-Jan-17 5:54 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Pete O'Hanlon17-Jan-17 5:56
mvePete O'Hanlon17-Jan-17 5:56 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 5:57
professionalKevin Marois17-Jan-17 5:57 
AnswerRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Richard Deeming17-Jan-17 2:34
mveRichard Deeming17-Jan-17 2:34 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Kevin Marois17-Jan-17 5:19
professionalKevin Marois17-Jan-17 5:19 
GeneralRe: Convert DateTimeOffset to DateTime in Linq To Entities Pin
Richard Deeming17-Jan-17 8:29
mveRichard Deeming17-Jan-17 8:29 
QuestionShow checkbox check in the datagridview line Pin
abboudi_ammar16-Jan-17 10:53
abboudi_ammar16-Jan-17 10:53 
AnswerRe: Show checkbox check in the datagridview line Pin
Richard MacCutchan16-Jan-17 21:37
mveRichard MacCutchan16-Jan-17 21:37 
QuestionHow can I extract positive word(s) from a paragraph in c# -Natural Language processing . Pin
Nowfal Sharafudeen16-Jan-17 1:09
Nowfal Sharafudeen16-Jan-17 1:09 
AnswerRe: How can I extract positive word(s) from a paragraph in c# -Natural Language processing . Pin
Pete O'Hanlon16-Jan-17 1:21
mvePete O'Hanlon16-Jan-17 1:21 
AnswerRe: How can I extract positive word(s) from a paragraph in c# -Natural Language processing . Pin
Eddy Vluggen16-Jan-17 2:48
professionalEddy Vluggen16-Jan-17 2:48 
Questionproject file associated with c# application on start Pin
Member 1104538814-Jan-17 22:40
Member 1104538814-Jan-17 22:40 

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.