我是靠谱客的博主 傲娇硬币,最近开发中收集的这篇文章主要介绍c语言jishu字母大小写,为何C#属性名称的首字母要大写,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

最近因工作需要参与了一个.Net小 项目,语言使用C#,虽然这语言很多地方来源于Java,然而搞Java久了来搞C#还真有一点不习惯,其中一个最不习惯的是C#中的属性首字母大

最近因工作需要参与了一个.Net小 项目,语言使用C#,虽然这语言很多地方来源于Java,然而搞Java久了来搞C#还真有一点不习惯,其中一个最不习惯的是C#中的属性首字母大小。比如:

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicclassTopic...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateLong id;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateString title; 

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateString content;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateString intro;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateTopicCategory category;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateListcomments=newjava.util.ArrayList();

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateDate inputTime=newDate();

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateInteger readTimes=0;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172//然后下面是getter及setter方法test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172}test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fnone.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fnone.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

而C#的版本

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fnone.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicclassTopic

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privatelongid;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privatestringtitle;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172      

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privatestringcontent;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privatestringintro;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateTopicCategory category;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateIListcomments=newList();

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateDateTime inputTime=DateTime.Now;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172       

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172privateintreadTimes=0;

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtuallongId

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returnid; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ id=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtualstringTitle

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returntitle; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ title=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtualstringContent

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returncontent; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ content=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtualstringIntro

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returnintro; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ intro=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtualTopicCategory Category

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returncategory; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ category=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtualIListComments

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returncomments; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ comments=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtualDateTime InputTime

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returninputTime; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ inputTime=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2finblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172publicvirtualintReadTimes

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172...{

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172get...{returnreadTimes; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockstart.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fcontractedsubblock.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172set...{ readTimes=value; }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedsubblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172        }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fexpandedblockend.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172    }test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fnone.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

test.jsp?url=http%3a%2f%2fimages.csdn.net%2fsyntaxhighlighting%2foutliningindicators%2fnone.gif&refer=http%3a%2f%2fblog.csdn.net%2feasyjf%2farticle%2fdetails%2f2293172

在表示层中直接使用Topic对象的属性,用java的话直接写成topic.title、topic.category等,而用C#则属性默认为Pascal,全部必须写为topic.Title、topic.Category等。由于该系统是一个Ajax应用,因此可想而知如果是做移植的话,客户端要移植多少的代码才行。而且我发现像JavaScript、Php及其它动态语言这些的属性推荐的也是使用Camel–Pascal,即与java一样。语言用多了,有点感觉.Net是在故意搞自己的一套啊,有点不遵守大小的规矩。

比如C#中的bool类型,当输出成字符串的时候,布尔真默认输出为True,也是首字母大小。而我们知道javascript中的布尔常量为true,由于大小写是有区别的,写成True则问题就严重了。如果要把一个对象转换成JSON,你还得想办法让bool值首字母小写,很麻烦啊。

发现.Net一直在吸引整合其它平台的设计思想、理念乃至产品等,然而如果什么都搞一套自己的,这样在以后会不会是大问题呢?

最后

以上就是傲娇硬币为你收集整理的c语言jishu字母大小写,为何C#属性名称的首字母要大写的全部内容,希望文章能够帮你解决c语言jishu字母大小写,为何C#属性名称的首字母要大写所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(39)

评论列表共有 0 条评论

立即
投稿
返回
顶部