fb ss

06/08/2010 21:16 .Summer#1
WTF?
Code:
Error	1	Extension methods must be defined in a non-generic static class	C:\Users\LoveYouAll.JOKE\Desktop\TheSource\HellCo\MyMath.cs	20	18	HellCo
annoying.

this is the things giving error:
Code:
public class MyMath
and when i change to static.
Line stops work, then if i change that to static, then 1million errors come up.
WTF?
i tried to solve it alot now
btw. I get the same error 2 times xD

(Arcos fb/ss fix)
06/08/2010 21:33 dragon89928#2
static basically means non changeable. So for example, foo is a static method of class Database. You can only do Database.foo(); However if you don't have static, you cant use it on an object. So for example you have:

Code:
public static void foo() {}
public void bar(){}
Code:
Database Blah = new Database(); 
Blah.bar();
that will work but if you went

Code:
Database Blah = new Database(); 
Blah.foo();
that will generate an error. Point is, make sure that you referenced static and non static correctly
06/08/2010 21:40 .Summer#3
I followed the guide from arco.
And this came up after.
Is wierd XD

and know about what it is.
I already tried change it to static. and change to non.
but nothing worked.
06/08/2010 21:53 dragon89928#4
tbh, its really hard to figure out what's wrong with your fb/ss cuz we can't see the code. But just double check (not guess and check) that your methods are indeed static if they should be static.
06/08/2010 21:56 .Summer#5
I did everything in arcos thread.
And i havent changed anything in them before
but I will try again.
Ill let u know if works :D
06/08/2010 21:59 Arcо#6
You placed something in teh wrong spot.
A lot got that error.
06/08/2010 22:07 .Summer#7
Arco.
Now this error after doing it again.
Code:
Error	1	Embedded statement cannot be a declaration or labeled statement	C:\Users\LoveYouAll.JOKE\Desktop\TheSource\HellCo\Features\Skills.cs	255	27	HellCo
06/08/2010 22:22 s.bat#8
Quote:
Originally Posted by dragon89928 View Post
static basically means non changeable.
No it doesn't. The sealed keyword refers to classes or methods that are immutable, or can't be extended or overridden. The static keyword refers to any members that are stateless to specific objects of a type, but belong to the type itself. The const keyword (applied to a field declaration) declares a class constant, and is also stateless to specific objects.
06/08/2010 22:48 .Summer#9
FIXED!!!!
06/09/2010 00:43 Arcо#10
So exactly what was the problem?
06/09/2010 02:05 .Summer#11
No idea.
I did it all again and worked. o.O

#thanks to US
06/09/2010 06:59 dragon89928#12
Quote:
Originally Posted by s.bat View Post
No it doesn't. The sealed keyword refers to classes or methods that are immutable, or can't be extended or overridden. The static keyword refers to any members that are stateless to specific objects of a type, but belong to the type itself. The const keyword (applied to a field declaration) declares a class constant, and is also stateless to specific objects.
last I checked immutable has the same meaning as non changeable. I also said "basically".

[Only registered and activated users can see links. Click Here To Register...]
06/09/2010 16:11 s.bat#13
Quote:
Originally Posted by dragon89928 View Post
last I checked immutable has the same meaning as non changeable. I also said "basically".

[Only registered and activated users can see links. Click Here To Register...]
Re-read what I wrote more carefully. I was referring to the sealed keyword when I talked about immutability because that is what you said static does (and it does not).