Show / Hide Table of Contents

    Class ItemCreationArguments

    Class that implements IThingCreationArguments, for the creation of an item.

    Inheritance
    System.Object
    ItemCreationArguments
    Implements
    IThingCreationArguments
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Items
    Assembly: Fibula.Items.dll
    Syntax
    public class ItemCreationArguments : IThingCreationArguments

    Properties

    | Improve this Doc View Source

    Attributes

    Gets or sets the attributes to set in the item to create.

    Declaration
    public IReadOnlyCollection<(ItemAttribute, IConvertible)> Attributes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<System.ValueTuple<ItemAttribute, System.IConvertible>>
    | Improve this Doc View Source

    TypeId

    Gets or sets the id of type for the item to create.

    Declaration
    public ushort TypeId { get; set; }
    Property Value
    Type Description
    System.UInt16

    Methods

    | Improve this Doc View Source

    WithTypeId(UInt16)

    Convenient method that initializes ItemCreationArguments with the given type id.

    Declaration
    public static ItemCreationArguments WithTypeId(ushort typeId)
    Parameters
    Type Name Description
    System.UInt16 typeId

    The type id of the item to create.

    Returns
    Type Description
    ItemCreationArguments

    A new instance of ItemCreationArguments specifying the given type id.

    Implements

    IThingCreationArguments

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.