Hi Guys
NP123 Syntax
In the msdn website Syntax has been explained. But I couldn’t understand it. For me it looks like strange. For example in the following website Syntax of C# is explained, anyone knows please explain the meaning.
http://msdn.microsoft.com/en-us/library/system.text.stringbuilder(printer).aspx
Syntax
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
public sealed class StringBuilder : ISerializable
Thank you
AlanPosted Aug 14, 2008, 4:23 PM
It probably looks strange, maha, because you're not used to seeing classes which have attributes - the items surrounded by square brackets.
What it's actually telling you is that:
1. StringBuilder is a public class in the .NET framework which is sealed, so no classes can be derived from it.
2. It implements the ISerializable interface.
3. It can be serialized.
4. It's visible to the Component Object Model (COM) - don't worry what this means.
MSDN uses these gray syntax boxes so you can see at a glance what you may need to know about a particular class or type, expressed in the .NET language which you use.
Posted Aug 14, 2008, 6:25 PM
Thank you for your explanation.
Muhammad Shahid FarooqPosted Aug 14, 2008, 6:22 PM
Serialization is the process of converting complex objects into stream of bytes for storage.
Deserialization is its reverse process, that is unpacking stream of bytes to their original form.
For more read the following articles:
http://www.c-sharpcorner.com/UploadFile/bipinjoshi/serializingObjectsinCS11102005234746PM/serializingObjectsinCS.aspx
http://www.codeproject.com/KB/cs/objserial.aspx
http://www.developer.com/net/csharp/article.php/3110371
Posted Aug 14, 2008, 5:07 PM
What is meant by serialized.
Ryan AlfordPosted Aug 14, 2008, 3:44 PM
Posted Aug 14, 2008, 3:29 PM
Syntax has been presented such away (in the above greay box) what does it mean.
Ryan AlfordPosted Aug 14, 2008, 3:18 PM
http://www.merriam-webster.com/dictionary/syntax