Search Results for

    Show / Hide Table of Contents

    Class EnumWriter

    Inheritance
    object
    EnumWriter
    Implements
    IEnumWriter
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Writers
    Assembly: LemonEdge.API.dll
    Syntax
    public class EnumWriter : IEnumWriter

    Constructors

    EnumWriter()

    Declaration
    public EnumWriter()

    Methods

    AddFileFooterAndCloseNamespaces(ClassFileWriter)

    Closes the [LemonEdge.Entities] namespace started by AddFileHeadersAndNamespace(ClassFileWriter)

    Declaration
    public void AddFileFooterAndCloseNamespaces(ClassFileWriter writer)
    Parameters
    Type Name Description
    ClassFileWriter writer

    The writer to close the namespace on

    AddFileHeadersAndNamespace(ClassFileWriter)

    Adds the standard using statements required for the interface defintions code to work correctly in LemonEdge, and starts the namespace [LemonEdge.Entities]

    Declaration
    public void AddFileHeadersAndNamespace(ClassFileWriter writer)
    Parameters
    Type Name Description
    ClassFileWriter writer

    The writer to add the using statements to

    WriteToFile(ClassFileWriter, ICustomList, IEnumerable<ICustomListItem>)

    Write the enum definition for a ICustomList created with LemonEdge Auto-Code designers to the specified writer

    Declaration
    public void WriteToFile(ClassFileWriter writer, ICustomList list, IEnumerable<ICustomListItem> items)
    Parameters
    Type Name Description
    ClassFileWriter writer

    The writer to add the generated code to

    ICustomList list

    The ICustomList to be created./>

    IEnumerable<ICustomListItem> items

    The custom list items for the enum

    Implements

    IEnumWriter

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.