Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to deploy your software (set up) Pin
Gerry Schmitz18-Apr-18 6:24
mveGerry Schmitz18-Apr-18 6:24 
GeneralRe: how to deploy your software (set up) Pin
ago248618-Apr-18 6:52
ago248618-Apr-18 6:52 
GeneralRe: how to deploy your software (set up) Pin
Gerry Schmitz18-Apr-18 9:07
mveGerry Schmitz18-Apr-18 9:07 
GeneralRe: how to deploy your software (set up) Pin
ago248619-Apr-18 21:48
ago248619-Apr-18 21:48 
GeneralRe: how to deploy your software (set up) Pin
Gerry Schmitz20-Apr-18 6:22
mveGerry Schmitz20-Apr-18 6:22 
GeneralRe: how to deploy your software (set up) Pin
ago248620-Apr-18 6:30
ago248620-Apr-18 6:30 
Questionconsolidating four similar classes Pin
Alexander Kindel16-Apr-18 15:23
Alexander Kindel16-Apr-18 15:23 
AnswerRe: consolidating four similar classes Pin
#realJSOP17-Apr-18 2:24
mve#realJSOP17-Apr-18 2:24 
I don't have an actual answer to your problem (that's a LOT of code), but I think if you use outlining to collapse all of the methods into their prototype, and organize the methods by grouping them something like this:

class IntegerPolynomial : IArithmetic<IntegerPolynomial> 
{
    public List<Integer> Coefficients { get; }
    public static IntegerPolynomial Zero = new IntegerPolynomial(new List<Integer>());
    public static IntegerPolynomial One = new IntegerPolynomial(new List<Integer> { Number.One });

    public IntegerPolynomial(List<Integer> coefficients)...

    public IntegerPolynomial GetAdditiveIdentity()...
    public IntegerPolynomial GetDerivative()...
    public List<IntegerPolynomial> GetFactors()...
    public IntegerPolynomial GetMultiplicativeIdentity()...
    public IntegerPolynomial GetPrimitivePart()...
    public IntegerPolynomial Negative()...

    public IntegerPolynomial Plus(IntegerPolynomial a)...
    public IntegerPolynomial Minus(IntegerPolynomial a)...
    public IntegerPolynomial Times(IntegerPolynomial a)...
    public IntegerPolynomial DivideBy(Integer a)...
    public Division<IntegerPolynomial> EuclideanDivideBy(IntegerPolynomial divisor)...

    public static IntegerPolynomial GetGCD(IntegerPolynomial a, IntegerPolynomial b)...

    public static IntegerPolynomial operator +(IntegerPolynomial a, IntegerPolynomial b)...
    public static IntegerPolynomial operator -(IntegerPolynomial a, IntegerPolynomial b)...
    public static IntegerPolynomial operator *(IntegerPolynomial a, IntegerPolynomial b)...
    public static IntegerPolynomial operator *(IntegerPolynomial a, Integer b)...
    public static IntegerPolynomial operator *(Integer a, IntegerPolynomial b)...
    public static IntegerPolynomial operator /(IntegerPolynomial a, IntegerPolynomial b)...
    public static IntegerPolynomial operator %(IntegerPolynomial a, IntegerPolynomial b)...
}


...you might be able to more easily discern patterns that can be optimized through the use of a base class and/or generics, or even just leave the code alone now that the methods are grouped together in a way that makes sense.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: consolidating four similar classes Pin
Alexander Kindel17-Apr-18 11:34
Alexander Kindel17-Apr-18 11:34 
GeneralRe: consolidating four similar classes Pin
#realJSOP17-Apr-18 12:33
mve#realJSOP17-Apr-18 12:33 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel17-Apr-18 16:53
Alexander Kindel17-Apr-18 16:53 
GeneralRe: consolidating four similar classes Pin
#realJSOP19-Apr-18 2:50
mve#realJSOP19-Apr-18 2:50 
AnswerRe: consolidating four similar classes Pin
Gerry Schmitz18-Apr-18 7:05
mveGerry Schmitz18-Apr-18 7:05 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel18-Apr-18 12:11
Alexander Kindel18-Apr-18 12:11 
GeneralRe: consolidating four similar classes Pin
Gerry Schmitz19-Apr-18 8:50
mveGerry Schmitz19-Apr-18 8:50 
QuestionC# Javascript in WebBrowser Pin
unfolded16-Apr-18 8:37
unfolded16-Apr-18 8:37 
AnswerRe: C# Javascript in WebBrowser Pin
Eddy Vluggen17-Apr-18 0:00
professionalEddy Vluggen17-Apr-18 0:00 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded17-Apr-18 1:06
unfolded17-Apr-18 1:06 
GeneralRe: C# Javascript in WebBrowser Pin
Eddy Vluggen17-Apr-18 6:32
professionalEddy Vluggen17-Apr-18 6:32 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded18-Apr-18 8:12
unfolded18-Apr-18 8:12 
AnswerRe: C# Javascript in WebBrowser Pin
Gerry Schmitz18-Apr-18 7:22
mveGerry Schmitz18-Apr-18 7:22 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded18-Apr-18 8:10
unfolded18-Apr-18 8:10 
GeneralRe: C# Javascript in WebBrowser Pin
Gerry Schmitz18-Apr-18 8:59
mveGerry Schmitz18-Apr-18 8:59 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded19-Apr-18 1:48
unfolded19-Apr-18 1:48 
GeneralRe: C# Javascript in WebBrowser Pin
Gerry Schmitz19-Apr-18 9:08
mveGerry Schmitz19-Apr-18 9:08 

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.