c#变量 [英] c# Variable

查看:65
本文介绍了c#变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中使用静态变量和方法

How to use static variable and method in c#

推荐答案



http://msdn.microsoft.com/en-us/library/79b3xss3% 28VS.80%29.aspx [ ^ ]

请参阅此链接,它将对您有所帮助.

干杯:)
Hi,

http://msdn.microsoft.com/en-us/library/79b3xss3%28VS.80%29.aspx[^]

Refer this link it will helpful to you.

Cheers :)


使用静态关键字.

use static keyword.

public static int MyStaticVariable;

public static void MyStaticMethod()
{
}



:)



:)


Sheetal,

您为什么不在Google上搜索?您将很容易通过网络找到它.尝试阅读任何一本能回答您问题的书.
Hi Sheetal,

Why don''t you search on Google? You will find it over net very easily. Try to read any Book, which will answer your query.


这篇关于c#变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆