Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

what is static variable

The static variable is used to refer to the common property of all objects 
(that is not unique for each object), 
e.g., The company name of employees, college name of students, etc. 
Static variable gets memory only once in the class area at the time of 
class loading. Using a static variable makes your program more 
memory efficient (it saves memory). Static variable belongs to the class 
rather than the object.
Comment

static variables

static data_type var_name = var_value;
// eg of static variable 
static int /*float, double, etc*/ star = 720; 
Comment

PREVIOUS NEXT
Code Example
Csharp :: vb.net get double item in list osf string 
Csharp :: How to execute a script after the c# function executed 
Csharp :: how to detect a null bool C# 
Csharp :: C# check control type 
Csharp :: virtual list entity framework 
Csharp :: Filter list contents with predicate (anonymous method) 
Csharp :: C# if (if-then) Statement 
Csharp :: linq cheat sheet 
Csharp :: il c# 
Csharp :: serenity.is get entity columns as ienumerable string 
Csharp :: linked list follow what in c# 
Csharp :: how to assign rds CAL for users 
Csharp :: c# nunit initialize variables 
Csharp :: WPF TextBox input to All Caps 
Csharp :: c# create monochrome bitmap 
Csharp :: Unity FPS camera z axis rotating problem 
Csharp :: in clause db2 c# 
Csharp :: c# .net core 3.0 trying Exception The transaction log for database is full due to ACTIVE_TRANSACTION 
Csharp :: how do make internet 
Csharp :: c# string replace multiple matches with one charactar 
Csharp :: how to make soft body OBJECT in unity 
Csharp :: c# string with double quotes inside 
Csharp :: catwherehouse 
Csharp :: unity 3d fire shoting 
Csharp :: true false when key pressed in c sharp unity 
Csharp :: xml reader attributes 
Csharp :: what is vector3.one c# 
Csharp :: delegates in c# 
Csharp :: nunjucks if variable exists 
Csharp :: cassandra Keyspaces repository .net 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =