Demonstrating Object Serialization

Assuming you know the rules for Object Serialization, my aim in this article is to write an app in J# which does Object Serialization and then I shall decipher the serialized data.   Below is the app which does the object serialization. This app is inspired from : http://www.visiblearea.com/visdoc/examples/Java/Thinking_in_Java/c12/documentation/Worm.html#Worm2     // Demonstrates Object Serialization…

1

Display Raw Contents of a file

Sometimes you just want to see the raw contents of a file. This is especially useful when you don’t have any cool editor/program which can read that file and present the contents in some useful manner. Like you may want to see contents of a zipped file or contents of a file that contains serialized…

3

IEEE-754 Floating point –> Special values and Ranges

As I mentioned in my previous blog, we shall now discuss details regarding range of values for IEEE-754 floating point numbers, Denormalized forms, NAN and a simple algorithms for conversion between IEEE-754 hexadecimal representations and decimal Floating-Point Numbers.   Let’s take a look at the special values in IEEE-754 floating point representation.   Special values:…

7

IEEE Standard 754 for Floating Point Numbers

This article specifies how single precision (32 bit) and double precision (64 bit) floating point numbers are to be represented as per IEEE Standard 754.   Floating point Representation:   Floating-point representation represents real numbers in scientific notation. Scientific notation represents numbers as a base number and an exponent. For example, in decimal, 123.456 could…

5

Some Insights into Delegates from J# perspective

It needs to be noted that the classes com.ms.lang.Delegate, System.Delegate or System.Multicast Delegate are all abstract classes. Hence, we cannot create instances of com.ms.lang or System.Delegate classes with the “new” keyword.   When we declare a delegate using the “delegate” keyword, compiler generates a non-abstract class derived from the com.ms.lang.Delegate type if @delegate is not…

1

Some differences between com.ms.lang.Delegate and System.Delegate type in J#

Firstly, instance “invoke” function has different case letters in them:   com.ms.lang.Delegate à invoke System.Delegate à Invoke   Also, the static functions combine and Remove have different case letters:   com.ms.lang.Delegate à combine com.ms.lang.Delegate à remove   System.Delegate àCombine System.Delegate àRemove   Moreover, delegates of com.ms.lang.Delegate type are binded at runtime, while System.Delegates are binded…

4

How to create System.Delegate in J#

Creating System.Delegate in J#   Single-cast Delegate   Single-cast delegate derived from System.Delegate are created using the @delegate directive. The default delegate in J# are the ones derived from com.ms.lang.Delegate(without using the @delegate directive). If one however wants to explicitly declare a delegate of the System.Delegate type, then the @delegate directive has to be used…

1

How to create com.ms.lang.Delegate in J#

Creating com.ms.lang.Delegate in J#   Single-cast Delegate   Single-cast Delegate derived from com.ms.lang.Delegate calls only one function. This delegate type represents objects that cannot be chained together in an invocation list.    The Syntax for the single-cast delegate is shown below:           delegate int TestDelegate (int a, int b);   As you can see,…

1

Primer – Delegates in J#

Primer – Delegates in J#   In next couple of posts i will discuss about delegates in J# starting from basic introduction, different types, and finally discuss some examples around delegates.   Here is the first section of this primer…As always feel free to send in your comments, questions and feedback!   Delegates in J#…

5

Who am I !

  My name is Prem and I am working as a Software Design Engineer in Visual J# product team. Visual J# is essentially one of the languages targeting .NET platform.   Visual J# is a powerful tool for Java-language developers who want to build applications and services on the Microsoft .NET Framework. Visual J# targets the…