Class ScriptObject
Encapsulates the name and type of an object in a script.
Inheritance
System.Object
ScriptObject
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.Scripting
Assembly: Syncfusion.Scripting.Base.dll
Syntax
public class ScriptObject : ISerializable
Constructors
ScriptObject()
Default constructor.
Declaration
public ScriptObject()
ScriptObject(ScriptObject)
Copy constructor
Declaration
public ScriptObject(ScriptObject src)
Parameters
Type | Name | Description |
---|---|---|
ScriptObject | src |
ScriptObject(SerializationInfo, StreamingContext)
Serialization constructor for script objects.
Declaration
protected ScriptObject(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization state information |
System.Runtime.Serialization.StreamingContext | context | Streaming context information |
ScriptObject(String, String)
Construct a script object given a name and type.
Declaration
public ScriptObject(string name, string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of object |
System.String | typeName | Type of object as a string |
Properties
Name
Name of object.
Declaration
public string Name { get; set; }
Property Value
Type |
---|
System.String |
TypeName
Type of object as a string.
Declaration
public string TypeName { get; set; }
Property Value
Type |
---|
System.String |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type |
---|
System.String |
Overrides
System.Object.ToString()
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Implements
System.Runtime.Serialization.ISerializable