Connecting Tech Pros Worldwide Forums | Help | Site Map

what is the keyword "transient"?

assaf
Guest
 
Posts: n/a
#1: Nov 16 '05
hi all

in the visual studio.net help,
i found the following description of
RSAParameters:


RSAParameters.D Field

[C#]
[NonSerialized]
public transient byte[] D;



i could not find any information about the keyword:
"transient".


could someone please enlighten me about "transient"?

assaf




Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#2: Nov 16 '05

re: what is the keyword "transient"?


assaf,

There is no keyword/statement "transient" in C# (from what I can tell).
The compiler is spitting up errors everywhere when I try and use it.

Can you compile code that uses "transient"? If so, can you provide the
code? The code you gave does not compile (as it shouldn't).


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

"assaf" <assafwo@hotmail.com> wrote in message
news:%23hNSoBuqEHA.1164@TK2MSFTNGP10.phx.gbl...[color=blue]
> hi all
>
> in the visual studio.net help,
> i found the following description of
> RSAParameters:
>
>
> RSAParameters.D Field
>
> [C#]
> [NonSerialized]
> public transient byte[] D;
>
>
>
> i could not find any information about the keyword:
> "transient".
>
>
> could someone please enlighten me about "transient"?
>
> assaf
>
>
>[/color]


Daniel Jin
Guest
 
Posts: n/a
#3: Nov 16 '05

re: what is the keyword "transient"?


indeed very strange. looks like it's a java keyword that C# once might have
considered borrowing. but someone didn't update them out of the docs?

"Nicholas Paldino [.NET/C# MVP]" wrote:
[color=blue]
> assaf,
>
> There is no keyword/statement "transient" in C# (from what I can tell).
> The compiler is spitting up errors everywhere when I try and use it.
>
> Can you compile code that uses "transient"? If so, can you provide the
> code? The code you gave does not compile (as it shouldn't).
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard.caspershouse.com
>
> "assaf" <assafwo@hotmail.com> wrote in message
> news:%23hNSoBuqEHA.1164@TK2MSFTNGP10.phx.gbl...[color=green]
> > hi all
> >
> > in the visual studio.net help,
> > i found the following description of
> > RSAParameters:
> >
> >
> > RSAParameters.D Field
> >
> > [C#]
> > [NonSerialized]
> > public transient byte[] D;
> >
> >
> >
> > i could not find any information about the keyword:
> > "transient".
> >
> >
> > could someone please enlighten me about "transient"?
> >
> > assaf
> >
> >
> >[/color]
>
>
>[/color]
Dennis Myrén
Guest
 
Posts: n/a
#4: Nov 16 '05

re: what is the keyword "transient"?


"Daniel Jin" <DanielJin@discussions.microsoft.com> wrote:[color=blue]
>looks like it's a java keyword that C# once might have considered
>borrowing.[/color]
That is correct. It is used in java to specify that a specific member in an
otherwise
serializable class should not be serialized.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Daniel Jin" <DanielJin@discussions.microsoft.com> wrote in message
news:8B563972-9376-4EDB-9B92-0B61B97888FB@microsoft.com...[color=blue]
> indeed very strange. looks like it's a java keyword that C# once might
> have
> considered borrowing. but someone didn't update them out of the docs?
>
> "Nicholas Paldino [.NET/C# MVP]" wrote:
>[color=green]
>> assaf,
>>
>> There is no keyword/statement "transient" in C# (from what I can
>> tell).
>> The compiler is spitting up errors everywhere when I try and use it.
>>
>> Can you compile code that uses "transient"? If so, can you provide
>> the
>> code? The code you gave does not compile (as it shouldn't).
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - mvp@spam.guard.caspershouse.com
>>
>> "assaf" <assafwo@hotmail.com> wrote in message
>> news:%23hNSoBuqEHA.1164@TK2MSFTNGP10.phx.gbl...[color=darkred]
>> > hi all
>> >
>> > in the visual studio.net help,
>> > i found the following description of
>> > RSAParameters:
>> >
>> >
>> > RSAParameters.D Field
>> >
>> > [C#]
>> > [NonSerialized]
>> > public transient byte[] D;
>> >
>> >
>> >
>> > i could not find any information about the keyword:
>> > "transient".
>> >
>> >
>> > could someone please enlighten me about "transient"?
>> >
>> > assaf
>> >
>> >
>> >[/color]
>>
>>
>>[/color][/color]


Paul E Collins
Guest
 
Posts: n/a
#5: Nov 16 '05

re: what is the keyword "transient"?


"assaf" <assafwo@hotmail.com> wrote:
[color=blue]
> [NonSerialized]
> public transient byte[] D;[/color]

Apparently, [NotSerialized] is the C# equivalent of 'transient' in
Java, so 'transient' should not be present in that C# declaration.

P.


assaf
Guest
 
Posts: n/a
#6: Nov 16 '05

re: what is the keyword "transient"?


thank u all.


"Dennis Myrén" <dennis@oslokb.no> wrote in message
news:WYx8d.293$Km6.5889@news4.e.nsc.no...[color=blue]
> "Daniel Jin" <DanielJin@discussions.microsoft.com> wrote:[color=green]
> >looks like it's a java keyword that C# once might have considered
> >borrowing.[/color]
> That is correct. It is used in java to specify that a specific member in[/color]
an[color=blue]
> otherwise
> serializable class should not be serialized.
> --
> Regards,
> Dennis JD Myrén
> Oslo Kodebureau
> "Daniel Jin" <DanielJin@discussions.microsoft.com> wrote in message
> news:8B563972-9376-4EDB-9B92-0B61B97888FB@microsoft.com...[color=green]
> > indeed very strange. looks like it's a java keyword that C# once might
> > have
> > considered borrowing. but someone didn't update them out of the docs?
> >
> > "Nicholas Paldino [.NET/C# MVP]" wrote:
> >[color=darkred]
> >> assaf,
> >>
> >> There is no keyword/statement "transient" in C# (from what I can
> >> tell).
> >> The compiler is spitting up errors everywhere when I try and use it.
> >>
> >> Can you compile code that uses "transient"? If so, can you provide
> >> the
> >> code? The code you gave does not compile (as it shouldn't).
> >>
> >>
> >> --
> >> - Nicholas Paldino [.NET/C# MVP]
> >> - mvp@spam.guard.caspershouse.com
> >>
> >> "assaf" <assafwo@hotmail.com> wrote in message
> >> news:%23hNSoBuqEHA.1164@TK2MSFTNGP10.phx.gbl...
> >> > hi all
> >> >
> >> > in the visual studio.net help,
> >> > i found the following description of
> >> > RSAParameters:
> >> >
> >> >
> >> > RSAParameters.D Field
> >> >
> >> > [C#]
> >> > [NonSerialized]
> >> > public transient byte[] D;
> >> >
> >> >
> >> >
> >> > i could not find any information about the keyword:
> >> > "transient".
> >> >
> >> >
> >> > could someone please enlighten me about "transient"?
> >> >
> >> > assaf
> >> >
> >> >
> >> >
> >>
> >>
> >>[/color][/color]
>
>[/color]


Closed Thread


Similar C# / C Sharp bytes