Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C# Coding Help Please
#6
(12-02-2019, 09:47 PM)Tedgp908 > Wrote: I’m the future add some comments comments above a function or class. It will make it a lot easier to debug your code, and for other people in the future to help.

 /**
  * Name and description
  * @param namOfParameter.  
  * @return nameOfWhatsBeingReturned
  */

Don’t use the underscore text thing your doing when declaring constants it read only variables. Should be PascalCasing in your code. I didn’t see this here but don’t use underscores in identifiers, unless it’s private then you can have a leading underscore.

Also good use of an enumeration

Thank you. I will definitely use comments next time i code. So for Pascal Casing. I dont know much about that so would it be like: private EnemyState EnemyState; instead of private EnemyState enemy_State;


Messages In This Thread
C# Coding Help Please - by Soul alt - 11-30-2019, 11:40 PM
RE: C# Coding Help Please - by Noire ♜ - 12-01-2019, 02:59 AM
RE: C# Coding Help Please - by Soul alt - 12-01-2019, 05:35 PM
RE: C# Coding Help Please - by Inferno - 12-02-2019, 08:52 AM
RE: C# Coding Help Please - by Tedgp908 >:( - 12-02-2019, 09:47 PM
RE: C# Coding Help Please - by Soul alt - 12-03-2019, 12:32 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)

About Us
    This is Dinkleberg's GMod, a gaming community based in Garry's Mod. We have a Trouble in Terrorist Town, Prop Hunt, Murder, and Deathrun Server. Come check them out sometime.