函数内部的变量! [英] Variables inside functions!

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

问题描述

我想问一下,如果我有一个具有for循环之类的几种结构的函数,如果/else,.....如果我在if范围内声明一个变量,并且if when不求值为true, if中的变量由运行时(.net)加载

i want to ask , if i have a function which has several constructs like for loop , if / else , ..... if i declare a variables inside an if scope and that if when does not evaluate to true , will the variables inside the if be loaded by the runtime(.net)

 

需要了解这一点,以便将变量声明放在正确的位置.

need to understand this , to put the variable declaration in the right place .

谢谢

Jamal.

推荐答案

你好,Jamal,

  跨度>

谢谢您的发帖!  ;我建议您在一个MS论坛中发布您的问题,

Thank you for your post!  I would suggest posting your question in one of the MS Forum,

Windows Developer Center > Windows Forms Forums > Windows Forms General


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

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