[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Variable name with hyphen / dash

Matty J

4/16/2008 12:35:00 AM

Hi
Is it possible to put a hyphen in a variable name?

I'm creating a DataContract for a WCF service and ideally I would like
the output XML to have hyphens in the variable names. Is there any way
to do this?

Thanks
Matt
7 Answers

Family Tree Mike

4/16/2008 2:20:00 AM

0

I do not believe any languages allow for a dash in the variable name (vb or
c#, at least). You can however customize the xml storage in any way you
would like.

"Matty J" wrote:

> Hi
> Is it possible to put a hyphen in a variable name?
>
> I'm creating a DataContract for a WCF service and ideally I would like
> the output XML to have hyphens in the variable names. Is there any way
> to do this?
>
> Thanks
> Matt
>

Matty J

4/16/2008 3:44:00 PM

0

Thanks Family Tree Mike
I'm not sure exactly where I can introduce the hyphens in to the XML -
any suggestions?
Cheers
Matt

Family Tree Mike

4/16/2008 4:33:00 PM

0

I believe this page shows custom serialization which you want. You should be
able to put dashes in the custmized element names.

http://msdn2.microsoft.com/en-us/library/ms7...

Hope this helps.

"Matty J" wrote:

> Thanks Family Tree Mike
> I'm not sure exactly where I can introduce the hyphens in to the XML -
> any suggestions?
> Cheers
> Matt
>

Wookuu

12/1/2009 1:59:00 PM

0

In article <gL2Rm.60018$Zu5.22439@newsfe24.iad>,
"WeReo_ScoTTy" <scottamerica@ixpres.com.no_spamm84037uj> wrote:

> "Sweetbac" <sweetbacz@scbglobal.net> wrote in message
> news:hf2cs9$f9k$1@news.eternal-september.org...
> > Scott
> > How long have you been a schizophrenic?
> > When did the symptoms 1st arise, and what did your
> > parents do to help, or hinder, the situation?
> What kind of fucking asshole talk is this to me? Are you a valued member of
> the community or are you a douchebag?

PiGGy the CHILD MOLESTING douchebag says WHAT???
--
"Scott Lifshine is the biggest joke on the Internet" -Desk Rabbit
?o|o?

JimK

12/1/2009 3:37:00 PM

0

On Tue, 1 Dec 2009 01:31:36 -0500, "WeReo_ScoTTy"
<scottamerica@ixpres.com.no_spamm84037uj> wrote:

>"Sweetbac" <sweetbacz@scbglobal.net> wrote in message
>news:hf2cs9$f9k$1@news.eternal-september.org...
>> Scott
>> How long have you been a schizophrenic?
>> When did the symptoms 1st arise, and what did your
>> parents do to help, or hinder, the situation?
>What kind of fucking asshole talk is this to me? Are you a valued member of
>the community or are you a douchebag?
>

Why couldn't he be both?

JimK

W.oolf.e2z

12/1/2009 4:01:00 PM

0

In article <oudah5lo3r1vb2id0ibgl442jgjd6glqbr@4ax.com>,
JimK <jkezwind@comcast.net> wrote:

> On Tue, 1 Dec 2009 01:31:36 -0500, "WeReo_ScoTTy"
> <scottamerica@ixpres.com.no_spamm84037uj> wrote:
>
> >"Sweetbac" <sweetbacz@scbglobal.net> wrote in message
> >news:hf2cs9$f9k$1@news.eternal-september.org...
> >> Scott
> >> How long have you been a schizophrenic?
> >> When did the symptoms 1st arise, and what did your
> >> parents do to help, or hinder, the situation?
> >What kind of fucking asshole talk is this to me? Are you a valued member of
> >the community or are you a douchebag?
> >
>
> Why couldn't he be both?
>
> JimK

PLEASE DO NOT ACKNOWLEDGE THE DELUSIONAL DEMENTED PEDOPHILE PiGGy
--
"Scott Lifshine is the biggest joke on the Internet" -Desk Rabbit
(R)o|o(R)

iL_WeReo

12/1/2009 5:57:00 PM

0

On Dec 1, 10:36 am, JimK <jkezw...@comcast.net> wrote:
> On Tue, 1 Dec 2009 01:31:36 -0500, "WeReo_ScoTTy"
>
> <scottamer...@ixpres.com.no_spamm84037uj> wrote:
> >"Sweetbac" <sweetb...@scbglobal.net> wrote in message
> >news:hf2cs9$f9k$1@news.eternal-september.org...
> >> Scott
> >> How long have you been a schizophrenic?
> >> When did the symptoms 1st arise, and what did your
> >> parents do to help, or hinder, the situation?
> >What kind of fucking asshole talk is this to me? Are you a valued member of
> >the community or are you a douchebag?
>
> Why couldn't he be both?
>
> JimK

I don't see being both.