Show / Hide Table of Contents

# Class NetDataEnumExtensions

##### Inheritance

object
NetDataEnumExtensions

###### Namespace: LiteNetLib.Utils

###### Assembly: LiteEntitySystem.dll

##### Syntax

    public static class NetDataEnumExtensions

### Methods

#### Get<T>(NetDataReader, out T)

##### Declaration

    public static void Get<T>(this NetDataReader reader, out T result) where T : unmanaged, Enum

##### Parameters

Type | Name | Description
--- | --- | ---
NetDataReader | reader |
T | result |

##### Type Parameters

Name | Description
--- | ---
T |

#### Get<T>(NetDataReader)

##### Declaration

    public static T Get<T>(this NetDataReader reader) where T : unmanaged, Enum

##### Parameters

Type | Name | Description
--- | --- | ---
NetDataReader | reader |

##### Returns

Type | Description
--- | ---
T |

##### Type Parameters

Name | Description
--- | ---
T |

#### Put<T>(NetDataWriter, T)

##### Declaration

    public static void Put<T>(this NetDataWriter writer, T e) where T : unmanaged, Enum

##### Parameters

Type | Name | Description
--- | --- | ---
NetDataWriter | writer |
T | e |

##### Type Parameters

Name | Description
--- | ---
T |