David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 1 | // |
| 2 | // TSet.cs |
| 3 | // |
| 4 | // Begin: Aug 19, 2007 |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 5 | // Authors: |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 6 | // 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 | |
| 13 | using System; |
| 14 | using System.Collections.Generic; |
| 15 | using System.Text; |
| 16 | |
| 17 | namespace Thrift.Protocol |
| 18 | { |
David Reiss | 46dc629 | 2008-02-06 22:09:58 +0000 | [diff] [blame] | 19 | public struct TSet |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 20 | { |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 21 | private TType elementType; |
| 22 | private int count; |
| 23 | |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 24 | public TSet(TType elementType, int count) |
David Reiss | c9d06ee | 2008-03-18 18:22:43 +0000 | [diff] [blame] | 25 | :this() |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 26 | { |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 27 | this.elementType = elementType; |
| 28 | this.count = count; |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | public TType ElementType |
| 32 | { |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 33 | get { return elementType; } |
| 34 | set { elementType = value; } |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | public int Count |
| 38 | { |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 39 | get { return count; } |
| 40 | set { count = value; } |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 41 | } |
| 42 | } |
| 43 | } |