# Struct Size

Namespace
  Npgsql.Internal

Assembly
  Npgsql.dll

    public readonly struct Size : IEquatable<Size>

Implements
  IEquatable<Size>

Inherited Members
  object.Equals(object, object)
  object.GetType()
  object.ReferenceEquals(object, object)

## Properties

### Kind

    public SizeKind Kind { get; }

#### Property Value

SizeKind

### Unknown

    public static Size Unknown { get; }

#### Property Value

Size

### Value

    public int Value { get; }

#### Property Value

int

### Zero

    public static Size Zero { get; }

#### Property Value

Size

## Methods

### Combine(Size)

    public Size Combine(Size other)

#### Parameters

`other` Size

#### Returns

Size

### Create(int)

    public static Size Create(int byteCount)

#### Parameters

`byteCount` int

#### Returns

Size

### CreateUpperBound(int)

    public static Size CreateUpperBound(int byteCount)

#### Parameters

`byteCount` int

#### Returns

Size

### Equals(Size)

Indicates whether the current object is equal to another object of the same type.

    public bool Equals(Size other)

#### Parameters

`other` Size

  An object to compare with this object.

#### Returns

bool

  true if the current object is equal to the `other` parameter; otherwise, false.

### Equals(object?)

Indicates whether this instance and a specified object are equal.

    public override bool Equals(object? obj)

#### Parameters

`obj` object

  The object to compare with the current instance.

#### Returns

bool

  true if `obj` and this instance are the same type and represent the same value; otherwise, false.

### GetHashCode()

Returns the hash code for this instance.

    public override int GetHashCode()

#### Returns

int

  A 32-bit signed integer that is the hash code for this instance.

### ToString()

Returns the fully qualified type name of this instance.

    public override string ToString()

#### Returns

string

  The fully qualified type name.

### TryCombine(Size, out Size)

    public bool TryCombine(Size other, out Size result)

#### Parameters

`other` Size
`result` Size

#### Returns

bool

## Operators

### operator ==(Size, Size)

    public static bool operator ==(Size left, Size right)

#### Parameters

`left` Size
`right` Size

#### Returns

bool

### implicit operator Size(int)

    public static implicit operator Size(int value)

#### Parameters

`value` int

#### Returns

Size

### operator !=(Size, Size)

    public static bool operator !=(Size left, Size right)

#### Parameters

`left` Size
`right` Size

#### Returns

bool