Show / Hide Table of Contents

Struct ReportDetail.ItemDisplayOrder

This one-member structure prevents the Common Language Runtime from misdirecting the signed integer Value argument of a constructor, which might have a valid value of zero, into a constructor that expects a DisplayOrder value, which is prohibited from being zero.

Namespace: WizardWrx
Assembly: WizardWrx.Core.dll
Syntax
public struct ItemDisplayOrder

Constructors

| Improve this Doc View Source

ItemDisplayOrder(Int32)

Hide the display order value, a signed integer, from the CLR.

Declaration
public ItemDisplayOrder(int itemdisplayorder)
Parameters
Type Name Description
System.Int32 itemdisplayorder

Specify the unsigned integer display order value to hide inside this structure.

Operators

| Improve this Doc View Source

Explicit(Int32 to ReportDetail.ItemDisplayOrder)

Explicitly convert an unsigned integer to the ItemDisplayOrder type that is intended to protect it from receiving signed integers that are intended to be treated as report values.

Declaration
public static explicit operator ReportDetail.ItemDisplayOrder(int pintItemdisplayorder)
Parameters
Type Name Description
System.Int32 pintItemdisplayorder

The return value is the input value, wrapped in a new ItemDisplayOrder structure.

Returns
Type Description
ReportDetail.ItemDisplayOrder

The return value is an ItemDisplayOrder structure wrapped around the specified integer.

Remarks

This operator must be explicit to coerce use of an explicit cast to steer the CLR to bind to the desired ReportDetail constructor.

| Improve this Doc View Source

Implicit(ReportDetail.ItemDisplayOrder to Int32)

Implicitly convert an ItemDisplayOrder to its true type, which is signed integer.

Declaration
public static implicit operator int (ReportDetail.ItemDisplayOrder itemdisplayorder)
Parameters
Type Name Description
ReportDetail.ItemDisplayOrder itemdisplayorder

Specify the ItemDisplayOrder to be implicitly cast to unsigned integer.

Returns
Type Description
System.Int32

The return value is the signed integer that is wrapped inside this structure.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX