Click or drag to resize

Psz Structure

X#
Internal type that implements the XBase Compatible PSZ type.
This type has many operators and implicit converters that normally are never directly called from user code.

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
[SerializableAttribute]
 STRUCTURE Psz IMPLEMENTS IEquatable<PSZ>, 
	ISerializable
Request Example View Source

The Psz type exposes the following members.

Constructors
  NameDescription
Public methodPsz(IntPtr)
Initializes a new instance of the Psz class
Public methodPsz(String)
Initializes a new instance of the Psz class
Public methodPsz(SerializationInfo, StreamingContext)
Construct a value from serialized data
Top
Properties
  NameDescription
Public propertyStatic member_NULL_PSZ
Public propertyItem
Top
Methods
  NameDescription
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides GetHashCode.)
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(String, Psz)
Public operatorStatic memberAddition(Psz, Long)
Public operatorStatic memberAddition(Psz, String)
Public operatorStatic memberAddition(Psz, DWord)
Public operatorStatic memberAddition(Psz, Psz)
Public operatorStatic memberEquality
Public operatorStatic memberGreaterThan
Public operatorStatic memberGreaterThanOrEqual
Public operatorStatic member(Byte* to Psz)
Public operatorStatic member(Long to Psz)
Public operatorStatic member(IntPtr to Psz)
Public operatorStatic member(SByte* to Psz)
Public operatorStatic member(DWord to Psz)
Public operatorStatic member(Void* to Psz)
Public operatorStatic member(Psz to Void*)
Public operatorStatic member(Psz to Byte*)
Public operatorStatic member(Psz to SByte*)
Public operatorStatic member(Psz to IntPtr)
Public operatorStatic member(Psz to String)
Public operatorStatic member(Psz to Long)
Public operatorStatic member(Psz to Int64)
Public operatorStatic member(Psz to DWord)
Public operatorStatic memberInequality
Public operatorStatic memberLessThan
Public operatorStatic memberLessThanOrEqual
Public operatorStatic memberSubtraction(String, Psz)
Public operatorStatic memberSubtraction(Psz, String)
Public operatorStatic memberSubtraction(Psz, Psz)
Top
Remarks
Tip Tip
The PSZ type is included in the X# language and runtime for compatibility only. In most cases the type can and should be replaced with normal strings.
If you need to interface with Win32 API functions that expect an ansi string, there is often also an alternative with a unicode string. We recommend to use that alternative when possible.
See Also