22
33namespace SabreTools . Serialization . Wrappers
44{
5- public abstract class WrapperBase < T > : WrapperBase , IWrapper < T >
5+ public abstract class WrapperBase < TModel > : WrapperBase , IWrapper < TModel >
66 {
77 #region Properties
88
99 /// <inheritdoc/>
10- public T GetModel ( ) => Model ;
10+ public TModel GetModel ( ) => Model ;
1111
1212 /// <summary>
1313 /// Internal model
1414 /// </summary>
15- public T Model { get ; }
15+ public TModel Model { get ; }
1616
1717 #endregion
1818
@@ -23,7 +23,7 @@ public abstract class WrapperBase<T> : WrapperBase, IWrapper<T>
2323 /// </summary>
2424 /// <param name="model">Model to be used in the wrapper</param>
2525 /// <param name="data">Underlying data for the wrapper</param>
26- protected WrapperBase ( T model , byte [ ] data )
26+ protected WrapperBase ( TModel model , byte [ ] data )
2727 : this ( model , data , 0 , data . Length )
2828 {
2929 }
@@ -34,7 +34,7 @@ protected WrapperBase(T model, byte[] data)
3434 /// <param name="model">Model to be used in the wrapper</param>
3535 /// <param name="data">Underlying data for the wrapper</param>
3636 /// <param name="offset">Offset into the data to use as the window start</param>
37- protected WrapperBase ( T model , byte [ ] data , int offset )
37+ protected WrapperBase ( TModel model , byte [ ] data , int offset )
3838 : this ( model , data , offset , data . Length - offset )
3939 {
4040 }
@@ -46,7 +46,7 @@ protected WrapperBase(T model, byte[] data, int offset)
4646 /// <param name="data">Underlying data for the wrapper</param>
4747 /// <param name="offset">Offset into the data to use as the window start</param>
4848 /// <param name="length">Length of the window into the data</param>
49- protected WrapperBase ( T model , byte [ ] data , int offset , int length )
49+ protected WrapperBase ( TModel model , byte [ ] data , int offset , int length )
5050 : base ( data , offset , length )
5151 {
5252 Model = model ;
@@ -62,7 +62,7 @@ protected WrapperBase(T model, byte[] data, int offset, int length)
6262 /// <param name="model">Model to be used in the wrapper</param>
6363 /// <param name="data">Underlying data for the wrapper</param>
6464 /// <remarks>Uses the current stream position as the offset</remarks>
65- protected WrapperBase ( T model , Stream data )
65+ protected WrapperBase ( TModel model , Stream data )
6666 : this ( model , data , data . Position , data . Length - data . Position )
6767 {
6868 }
@@ -73,7 +73,7 @@ protected WrapperBase(T model, Stream data)
7373 /// <param name="model">Model to be used in the wrapper</param>
7474 /// <param name="data">Underlying data for the wrapper</param>
7575 /// <param name="offset">Offset into the data to use as the window start</param>
76- protected WrapperBase ( T model , Stream data , long offset )
76+ protected WrapperBase ( TModel model , Stream data , long offset )
7777 : this ( model , data , offset , data . Length - offset )
7878 {
7979 }
@@ -85,7 +85,7 @@ protected WrapperBase(T model, Stream data, long offset)
8585 /// <param name="data">Underlying data for the wrapper</param>
8686 /// <param name="offset">Offset into the data to use as the window start</param>
8787 /// <param name="length">Length of the window into the data</param>
88- protected WrapperBase ( T model , Stream data , long offset , long length )
88+ protected WrapperBase ( TModel model , Stream data , long offset , long length )
8989 : base ( data , offset , length )
9090 {
9191 Model = model ;
0 commit comments