Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ChunkReference Struct

    Namespace: Stride.Core.Serialization.Contents
    Assembly: Stride.Core.Serialization.dll

    Describe a reference between an object and another.

    [DataSerializer(typeof(ChunkReference.Serializer))]
    public struct ChunkReference : IEquatable<ChunkReference>
    Remarks

    This class is IEquatable, and equality is true if and only if Location and ObjType properties match

    Name Description
    Constructors
    ChunkReference(Type, String)
    Fields
    Location
    NullIdentifier
    ObjectType
    Methods
    Equals(ChunkReference)
    Equals(Object)
    GetHashCode()
    Operators
    Equality(ChunkReference, ChunkReference)
    Inequality(ChunkReference, ChunkReference)
    | Improve this Doc View Source

    Constructors


    ChunkReference(Type, String)

    public ChunkReference(Type objectType, string location)
    Parameters
    Type Name Description
    System.Type objectType
    System.String location
    | Improve this Doc View Source

    Fields


    Location

    public readonly string Location
    Field Value
    Type Description
    System.String

    NullIdentifier

    public const int NullIdentifier = -1
    Field Value
    Type Description
    System.Int32

    ObjectType

    public readonly Type ObjectType
    Field Value
    Type Description
    System.Type
    | Improve this Doc View Source

    Methods


    Equals(ChunkReference)

    public bool Equals(ChunkReference other)
    Parameters
    Type Name Description
    ChunkReference other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    Operators


    Equality(ChunkReference, ChunkReference)

    public static bool operator ==(ChunkReference left, ChunkReference right)
    Parameters
    Type Name Description
    ChunkReference left
    ChunkReference right
    Returns
    Type Description
    System.Boolean

    Inequality(ChunkReference, ChunkReference)

    public static bool operator !=(ChunkReference left, ChunkReference right)
    Parameters
    Type Name Description
    ChunkReference left
    ChunkReference right
    Returns
    Type Description
    System.Boolean

    Inherited Members

    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation