CS0038 error using LinearRegLine in a class
Author: Dieter Weiss
Creation Date: 10/23/2018 12:26 PM
profile picture

Dieter Weiss

#1
Hi,
I'm trying do set up an own dataseries using LinearRegLine within class. The compile answers with CS0038 non static member ....

In C# helps to make the method static, but not with using this and base.

Any idea?

Regards
Dieter
profile picture

Eugene

#2
Hi Dieter,

You can look up compiler errors in MSDN e.g. Compiler Error CS0038

Answer depends on your code. Could you share the code that throws the error?
profile picture

Dieter Weiss

#3
sure ...

CODE:
Please log in to see this code.
profile picture

Eugene

#4
Before you're able to call a WealthScript method like LinearRegLine, you should pass WealthScript object by reference:

Subclass from WealthScript, post #6
WealthScript Inheritance, post #2
WealthScript Inheritance, post #2
profile picture

Dieter Weiss

#5
Thanks a lot, Eugene
profile picture

Eugene

#6
Any time.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).