blob: cdf38490fd237f1fe3d4626e9619decd35ab2e6c [file] [log] [blame]
David Reiss7f42bcf2008-01-11 20:59:12 +00001//
2// TSet.cs
3//
4// Begin: Aug 19, 2007
David Reiss0c90f6f2008-02-06 22:18:40 +00005// Authors:
David Reiss7f42bcf2008-01-11 20:59:12 +00006// Todd Berman <tberman@imeem.com>
7//
8// Distributed under the Thrift Software License
9//
10// See accompanying file LICENSE or visit the Thrift site at:
11// http://developers.facebook.com/thrift/using
12
13using System;
14using System.Collections.Generic;
15using System.Text;
16
17namespace Thrift.Protocol
18{
David Reiss46dc6292008-02-06 22:09:58 +000019 public struct TSet
David Reiss7f42bcf2008-01-11 20:59:12 +000020 {
David Reissd831a212009-02-13 03:09:52 +000021 private TType elementType;
22 private int count;
23
David Reiss7f42bcf2008-01-11 20:59:12 +000024 public TSet(TType elementType, int count)
David Reissc9d06ee2008-03-18 18:22:43 +000025 :this()
David Reiss7f42bcf2008-01-11 20:59:12 +000026 {
David Reissd831a212009-02-13 03:09:52 +000027 this.elementType = elementType;
28 this.count = count;
David Reiss7f42bcf2008-01-11 20:59:12 +000029 }
30
31 public TType ElementType
32 {
David Reissd831a212009-02-13 03:09:52 +000033 get { return elementType; }
34 set { elementType = value; }
David Reiss7f42bcf2008-01-11 20:59:12 +000035 }
36
37 public int Count
38 {
David Reissd831a212009-02-13 03:09:52 +000039 get { return count; }
40 set { count = value; }
David Reiss7f42bcf2008-01-11 20:59:12 +000041 }
42 }
43}