Case and the FCL

  • Thread starter Thread starter George Remen
  • Start date Start date
G

George Remen

Hello,

I'd like to know if it's somehow possible to refere to FCL object in the
lower case regardless of the case they exist in (unless there is some sort
of conflict between object names).

For example, instead of "Console.WriteLine..." could I somehow say
"console.writeline...". Right now this generates a "type or namespace name
could not be found...". Is there a way to do this?

As I start learning c# and programming I just find its easier to preface
types with extra letters rather than useing caps.

Thanks,
George
 
George,

C# is case sensitive, so no that is not possible. VB.NET is not case
sensitive, so there you can do what you mention in your post.

Regards,
Joakim
 
George said:
Hello,

I'd like to know if it's somehow possible to refere to FCL object in
the lower case regardless of the case they exist in (unless there is
some sort of conflict between object names).

For example, instead of "Console.WriteLine..." could I somehow say
"console.writeline...". Right now this generates a "type or namespace
name could not be found...". Is there a way to do this?

Use VB .NET. C# is case-sensitive.
As I start learning c# and programming I just find its easier to
preface types with extra letters rather than useing caps.

Well, if you're learning, why not learn how to do it properly ;->
 
Joerg,

Let me further clarify - I'm not a touch typist and I find that hitting
shift every few letters is a serious speedbump.

With regard to VB - I'd like to learn a C-class language because of its
vaunted flexibility.

So I wonder is there such a compiler option or some sort of add-on or
modification that may remove certain case sensitivity? I know I'm a novice
but I prefer to add a few extra letters to an object rather than to use
Pascal or camel.

Thanks,
George
 
George Remen said:
Let me further clarify - I'm not a touch typist and I find that hitting
shift every few letters is a serious speedbump.

I suspect you'll find that changes over time - but only if you take the
hit and make the effort.
With regard to VB - I'd like to learn a C-class language because of its
vaunted flexibility.

I don't know of any C-syntax-based languages which are case-
insensitive, I'm afraid. However, VB.NET has pretty much the same
functionality as C#.
So I wonder is there such a compiler option or some sort of add-on or
modification that may remove certain case sensitivity? I know I'm a novice
but I prefer to add a few extra letters to an object rather than to use
Pascal or camel.

You'll be at odds with the entire rest of the framework if you do.
Every time you use a framework class you *will* have to use capitals at
the relevant points.
 
Thanks for the response. Yup it looks like I'm going to have to learn type
like a Camel :)

Thanks,
George
 
George said:
Let me further clarify - I'm not a touch typist and I find that hitting
shift every few letters is a serious speedbump.

With a good programming editor (gVim is my preference) yuo can map
frequently used words like Console or Writeline to one or two keystrokes.
Vim also has tab completion, which also save a lot of typing and spelling
errors.

If you are using VS, Ctrl-Space (I think) is similar, though I find the list
box annoying. Perhaps the funtionality can be customized.
 
Have a look at DevExpress CodeRush. Comes with template expansion,
intelligent anticipation of what you're going to type and a whole bunch of
other goodies.
 
Back
Top