mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 19:04:09 +08:00
Initial move from old twain-in-dotnet.
This commit is contained in:
34
NTwain/Triplets/OpBase.cs
Normal file
34
NTwain/Triplets/OpBase.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using NTwain.Values;
|
||||
|
||||
namespace NTwain.Triplets
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for grouping triplet operations messages.
|
||||
/// </summary>
|
||||
public abstract class OpBase
|
||||
{
|
||||
TwainSession _session;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OpBase" /> class.
|
||||
/// </summary>
|
||||
/// <param name="session">The session.</param>
|
||||
/// <exception cref="System.ArgumentNullException"></exception>
|
||||
protected OpBase(TwainSession session)
|
||||
{
|
||||
if (session == null) { throw new ArgumentNullException("session"); }
|
||||
_session = session;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the twain session.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The session.
|
||||
/// </value>
|
||||
protected TwainSession Session { get { return _session; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user