Table of Contents

Class NullType

Namespace
L5Sharp.Types
Assembly
L5Sharp.dll

Represents a null LogixType implementation, or a type that is neither atomic, structure, array, or string.

public sealed class NullType : LogixType, ILogixSerializable
Inheritance
NullType
Implements
Inherited Members

Remarks

This would be the default for any tag that has no data type defined.

Fields

Instance

Gets the singleton instance of the NullType logix type.

public static readonly NullType Instance

Field Value

NullType

Properties

Class

The class (atomic, predefined, user-defined) that the type belongs to.

public override DataTypeClass Class { get; }

Property Value

DataTypeClass

A DataTypeClass option representing the class type.

Family

The family (string or none) of the type.

public override DataTypeFamily Family { get; }

Property Value

DataTypeFamily

A DataTypeFamily option representing the family value.

Members

The collection of LogixMember objects that make up the structure of the type.

public override IEnumerable<LogixMember> Members { get; }

Property Value

IEnumerable<LogixMember>

A IEnumerable<T> containing LogixMember objects.

Remarks

All logix types, with the exception of a BOOL and REAL/LREAL, have what can be considered members. Every derived type must implement this property for which it returns a collection of members, forming the type/member hierarchy of the logix type.

Name

The name of the logix type.

public override string Name { get; }

Property Value

string

A string name identifying the logix type.

Methods

Serialize()

Returns a XElement representing the serialized L5X data for a given object.

public override XElement Serialize()

Returns

XElement

A XElement containing the XML data.