473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

what is the keyword "transient"?

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

Nov 16 '05 #1
5 25581
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]
- mv*@spam.guard.caspershouse.com

"assaf" <as*****@hotmail.com> wrote in message
news:%2****************@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

Nov 16 '05 #2
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:
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]
- mv*@spam.guard.caspershouse.com

"assaf" <as*****@hotmail.com> wrote in message
news:%2****************@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


Nov 16 '05 #3
"Daniel Jin" <Da*******@discussions.microsoft.com> wrote:
looks like it's a java keyword that C# once might have considered
borrowing. 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" <Da*******@discussions.microsoft.com> wrote in message
news:8B**********************************@microsof t.com... 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:
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]
- mv*@spam.guard.caspershouse.com

"assaf" <as*****@hotmail.com> wrote in message
news:%2****************@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
>
>
>


Nov 16 '05 #4
"assaf" <as*****@hotmail.com> wrote:
[NonSerialized]
public transient byte[] D;


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

P.
Nov 16 '05 #5
thank u all.
"Dennis Myrén" <de****@oslokb.no> wrote in message
news:WY****************@news4.e.nsc.no...
"Daniel Jin" <Da*******@discussions.microsoft.com> wrote:
looks like it's a java keyword that C# once might have considered
borrowing. 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" <Da*******@discussions.microsoft.com> wrote in message
news:8B**********************************@microsof t.com...
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:
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]
- mv*@spam.guard.caspershouse.com

"assaf" <as*****@hotmail.com> wrote in message
news:%2****************@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
>
>
>


Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

39
by: TonyJeffs | last post by:
Great book - I like the way that unlike other books, AC++ explains as much as possible about every piece of code discussed, so I'm not left thinking, "well...OK... I get line 12, but I wonder what...
0
by: Ollie | last post by:
I am trying to access the transients subscriptions for a remote COM+ server from an asp.net web service, the problem is access rights to save to the local transient subscriptions, the code fails...
2
by: snowie | last post by:
I have a simillar problem to what others have had before me. I just can't find the solution in any earlier post here at the scripts (or any other forum). I am calling a web service that returns a...
11
by: Tor Erik | last post by:
Hi, The reason is that my application does about 16 connects and data transfers per second, to the same 16 remote hosts. After approx 200 secs there are 4000 sockets waiting to be garbage...
3
by: news.microsoft.com | last post by:
Who knows what it means when a Windows XP Pro SP2 produces a transient error window from aspnet_state.exe saying "instruction at reference to memory at . memory could not be read." every time it...
5
by: Jeremy | last post by:
Is there any good reading about pitfalls of scoping when using events? Here is my specific issue: function MyType() { this.foo = "bar"; this.textbox = document.createElement("input");...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.