Search Issue Tracker

Fixed

Votes

0

Found in

4.3.3f1

Issue ID

584957

Regression

No

C# example for Serializable does not inherit from System.Object

Docs - Infrastructure

-

The documentation for Serializable

http://docs.unity3d.com/Documentation/ScriptReference/Serializable.html

states that the serializable class must extend System.Object, and the Javascript code sample shows this, but the C# example does not.

Comments (1)

  1. Peter77

    Jan 22, 2014 13:10

    System.Object is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy. Languages typically do not require a class to declare inheritance from Object because the inheritance is implicit.

    More on that, see http://msdn.microsoft.com/en-us/library/system.object%28v=vs.110%29.aspx

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.