iconAll times are GMT. The time now is 11:06 PM. | Welcome to Forum, please register to access all of our features.

» Forum - Nigmae Community » Computing » Programming / SW Developing » C# » Converting from VB to C#

Reply
 
LinkBack Thread Tools Display Modes
Old 12-18-2007, 07:30 AM   #1 (permalink)
achilles
Junior Member
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
achilles is an unknown quantity at this point
Lightbulb Converting from VB to C#

In Vb.Net, It is possible to have Keywords as Element names using the "[]" markers; and even it is possible to have a Property with the same name as Class and therefore it's possible to have a Class in VB.Net like this:

Code:
Public Class [For]
	private _for As Int32

	Public Property [For] As Int32
		Get
			Return _for
		End Get
		Set (Value As Int32)
			_for=Value
		End Set
	End Property
End Class
What is the C# Equivalent for that code?
Is it possible to have something like that in C#
achilles is offline   Reply With Quote
Old 01-16-2008, 12:02 PM   #2 (permalink)
honeypot
Junior Member
 
Join Date: Jan 2008
Age: 38
Posts: 16
Thanks: 9
Thanked 19 Times in 3 Posts
honeypot is on a distinguished road
Default Re: Converting from VB to C#

The C# equivalent is @

like

public class @class {}
honeypot is offline   Reply With Quote
Old 06-11-2008, 02:07 PM   #3 (permalink)
chouffainet
Junior Member
 
Join Date: Jun 2008
Age: 32
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
chouffainet is an unknown quantity at this point
Smile Re: Converting from VB to C#

Hello,
The equivalent code in C# is :

public class myClassSample
{

public myClassSample() { }

private int _for ;
public int ForValue
{
get { return _for ; }
set { _for = value; }
}
}
chouffainet is offline   Reply With Quote
Old 10-11-2008, 12:33 PM   #4 (permalink)
ghij550
Senior Member
 
Join Date: Sep 2008
Posts: 303
Thanks: 0
Thanked 1 Time in 1 Post
ghij550 is an unknown quantity at this point
Smile 消费机

指纹考勤系统概括 以其人之特征,识其人之真身 三维活体指纹识别仪 你是谁? 我是 语音消费机,嵌入式消费机,水控机,水控器…… 请查验我的证件、请核对我的 密码、这是我的钥匙 …… 这证件是你的吗? 你的密码想起来了吗? 钥匙丢了怎么办? 随着社会精神文明和物质文明的高度发展,这种凭物识人, 认物不认人的传统方式,即不安全又不方便,已远不能满足人类对其的身份鉴别与安全保障的要求。 " 以其人之特征,识其人之真身"这一古老而实用的生物法鉴别身份的识别方式,经过现代科学技术的包装,再次以 全新的姿态粉墨登场了。 " 活体指纹识别系统"就是这一识别方式的典型代表,它的诞生,使身份鉴别技术进入了一个崭新的时代,它从根本 上弥补了以物辨人(如:证件、签字、暗号、照片、密码、钥匙、印鉴、IC卡等)鉴别方式的易假冒、易丢失、 易遗忘、易被盗等不安全隐患。 活体指纹识别系统的特点: 1. 终身不变性:人的体态、容貌、 性格会变,指纹一旦形成,便终身不变; 2. 不可代替性:全世界人口数以亿计, 但却找不到两个相同的指纹; 3. 安全性:不可被盗、 不可被抢、 不可复制、 不可替代、不需记忆、不会遗失; 4. 快速性:鉴别完成时间仅需数秒钟; 5. 先进性:系统使用计算机全自动化管理,准确方便安全可靠; 6. 灵活性:提供多种登记识别摸式 。 活体指纹识别系统的技术性能: 指纹登记速度:1 ~ 3秒 确认指纹耗时:< 1秒 误认率:< 0.0001% (单指使用时) 拒认率:< 0.01%(单指使用时) 手指的特征数据可储存在:指纹识别仪内、 计算机内、服务器内、智能卡内 活体指纹识别系统的应用范围: 任何需要鉴别其人的真实身份的地方; 任何需要保护自己的财物和隐私的场所; 1、指纹门禁管理系统 专用锁+指纹仪=指纹门禁管理系统 磁卡、IC卡、密码等,都有被人复制,被人代替的问题,而利用人体生物特征----指纹识别,其不可复制,不可替代的作用在门禁管理方面是独特的最佳应用方式,并能自动记录人员 出入的情况。 指纹门禁管理系统可广泛用于: 大厦、办公室、住宅、宾馆、军事基地、机要部门、银行金库、监狱等地的出入门禁控制管理; 银行保管箱、民用保管箱、公共场所储物箱等处的小门开启;指纹开门控制开启和防盗器的开启。 2、指纹识别证件管理系统 指纹智能卡+带读卡器的指纹仪=指纹识别证件管理系统 现有的证件容易被假冒、持证人的像貌与证件上的相片会因种种原因而改变,而指纹智能卡将持卡人的指纹、个人 资料和有关信息以数据码记录于卡式证件中,鉴别时,只需用读卡器读出证件中的指纹信息,再将持卡人的指纹经 指纹仪与证件中读出的指纹对比,保证人证绝对相符。 指纹识别证件管理系统可广泛应用于: 身份证、驾驶证、证券股东卡、专用会员证、医疗证、 信用卡、自动提款卡、指纹印鉴、储蓄存折、电子钱包 3、 凭指纹授权管理系统 指纹仪替代密码=凭指纹授权管理系统 从前最常用的办法是密码,而密码容易泄密、破译、遗忘,造成事故还难以查出,而用指纹代替密码 , 即不需记忆, 又可自动记录被授权人的使用时间。 凭指纹授权管理系统可广泛应用于: 重大设备使用授权、计算机用户使用授权、应用软件及信息资料开启授权 4、 指纹考勤、巡更手指纹签到系统 专用软件+指纹仪=手指纹考勤识别系统 在出入口和需巡逻检查点上安装了此系统, 每逢有人使用, 机内就会记录×年×月×日×时×分×秒,×人到此;显然,代打卡的事再也不能发生了。 考勤巡更指纹识别系统广泛应用于: 企事业单位公司工厂工地人员上下班考勤、大厦保安巡更记录、公安干警巡逻记录。 与传统身份识别方法的比较一览表: 指纹识别器 密码识别 证件识别 用户资料管理 电脑 电脑 人工 用户身份验证方式 绝无假冒,准确可靠安全快捷 易遗忘, 易被盗 人工验证,不准确,不可靠,易丢失 用户验证时间
ghij550 is offline   Reply With Quote
Old 10-16-2008, 01:50 AM   #5 (permalink)
lronclawbigun
Senior Member
 
Join Date: Sep 2008
Posts: 355
Thanks: 0
Thanked 1 Time in 1 Post
lronclawbigun is an unknown quantity at this point
Question Buying World of Warcraft CD Key from a user

As a smart WOW player, I have found lots of places to buy World of Warcraft CD Key & Time Card and I highly appreciate two sites listed below.4cdk.com is one of the best sellers who offer the CD Key in games and Game Time Card in occident. It mostly sell CD Key and Game Time Cards card for world of warcraft US, world of warcraft US, Final Fantasy, Lineage 2, Lord of the Rings Online, Ever Quest 2, Guild Wars, Eve, Tabula Rasa, Hellgate and so on. You don’t have to register. If you want to buy wow cd key or Time Card, just click “Buy Now”, then leave your full name, your mailbox, your telephone number, your payment method and check out. After the payment is verified, it will send the CD Key and Time Card to you by mail. It provides 24 hours Email support. The service is good and its price is ok. It is convenient as long as you have left the correct information. But if you didn’t, there may be great trouble. I have ever been a user of 4cdk.com. But most Chinese gold-farming operations have offered services such as "Warhammer Power Leveling" in which they assume control of a player's character and turn it into a high-powered hero far faster than the original owner could manage themselves.Now Chinese-based game service companies offering Warhammer Online Power Leveling is growing continuously. Looking over the entire Southeast Asian market, many of these companies are concentrated in the Philippines, Thailand, Vietnam, and other areas in India. North Korea is worth mentioning because the labor cost is currently the most inexpensive. War Power leveling.
lronclawbigun is offline   Reply With Quote
Old 10-17-2008, 11:34 AM   #6 (permalink)
liyanricaoqiyue1314
Senior Member
 
Join Date: Sep 2008
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
liyanricaoqiyue1314 is an unknown quantity at this point
Thumbs down hh

Death to the DorgeshuunDesert TreasureDevious MindsDigsite QuestDream Mentor
liyanricaoqiyue1314 is offline   Reply With Quote
Old 10-21-2008, 01:44 PM   #7 (permalink)
ghij550
Senior Member
 
Join Date: Sep 2008
Posts: 303
Thanks: 0
Thanked 1 Time in 1 Post
ghij550 is an unknown quantity at this point
Thumbs up 计量泵

计量泵  泵,一般可以理解为输送流体的机械设备。  计量泵(metering pump),可以计量所输送液体的机械,也叫定量泵、比例泵。  通常描述为:计量泵是一种可以满足各种严 格的工艺流程需要,流量可以在0-100%范围内无级调节,用来输送液体(特别是腐蚀性液体)一种特殊容积泵。  分类一:根据过流部分   一、柱塞、活塞式  二、机械隔膜式  三、液压隔膜式  分类二:根据驱动方式  一、电机驱动  二、 电磁驱动  三、气动  分类三:根据工作方式  一、往复式  二、回转式  三、齿轮式  其他的分类 方式:  电控型,气控型,保温型,加热型,高黏度型等。
ghij550 is offline   Reply With Quote
Old 11-03-2008, 10:14 AM   #8 (permalink)
agoodic
Member
 
Join Date: Oct 2008
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
agoodic is an unknown quantity at this point
Angry cheap Mp4 players

cheap Mp4 playersdigital mp4 player - mp4 3gp - mp4 player - wholesale mp4 player - china electronics - china wholesale - China Wholesale factory - Below Wholesale Electronics From China
agoodic is offline   Reply With Quote
Old 11-10-2008, 11:17 PM   #9 (permalink)
Yangkee271
Junior Member
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Yangkee271 is an unknown quantity at this point
Angry Those Teenage Years

bump and lurk  When you were 13, she suggested a haircut that was becoming.  You thanked her by telling her she had no taste.  When you were 14, she paid for a month away at summer camp.  You thanked her by forgetting to write a single letter.  When you were 15, she came home from work, looking for a hug.  You thanked her by having your bedroom door locked.  When you were 16, she taught you how to drive her car.  You thanked her by taking it every chance you could.  When you were 17, she was expecting an important call.  You thanked her by being on the phone all night.  When you were 18, she cried at your high school graduation.  You thanked her by staying out partying until dawn.Come and buy WoW Gold, Cheap WoW Gold wow Accounts here, Cheap WoW Gold,Cheap WoW Gold, our WoW Gold web .
Yangkee271 is offline   Reply With Quote
Old 11-13-2008, 03:35 AM   #10 (permalink)
liyanricaoqiyue1314
Senior Member
 
Join Date: Sep 2008
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
liyanricaoqiyue1314 is an unknown quantity at this point
Cool ddfefd

A Fairy Tale Part I - Growing PainsA Soul's BaneAnimal MagnetismBetween a Rock… Biohazard
liyanricaoqiyue1314 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On