An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Web.Core/DB/Diapasone.cs

39 lines
692 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Web.Core.DB {
public class Diapasone {
public readonly long start;
public readonly long count;
/// <summary>
/// Diapasone total value of null means that it has not yet been computed
/// </summary>
public long? total {
get;
set;
}
public Diapasone(long start, long count) {
this.start = start;
this.count = count;
this.total = null;
}
public static Diapasone unlimited {
get {
return new Diapasone(0, -1);
}
}
public static Diapasone first {
get {
return new Diapasone(0, 1);
}
}
}
}