c# Programming Glossary: int64
Get an IDataReader from a typed List http://stackoverflow.com/questions/2258310/get-an-idatareader-from-a-typed-list int i return Int32 GetValue i public virtual long GetInt64 int i return Int64 GetValue i public virtual string GetString.. GetValue i public virtual long GetInt64 int i return Int64 GetValue i public virtual string GetString int i return string..
C# generic constraint for only integers http://stackoverflow.com/questions/32664/c-sharp-generic-constraint-for-only-integers way with c# generics to limit a type T to only Int16 Int32 Int64 UInt16 UInt32 UInt64 I'm aware of the where keyword but can't.. to limit a type T to only Int16 Int32 Int64 UInt16 UInt32 UInt64 I'm aware of the where keyword but can't find an interface for..
Kill child process when parent process is killed http://stackoverflow.com/questions/3342941/kill-child-process-when-parent-process-is-killed struct JOBOBJECT_BASIC_LIMIT_INFORMATION public Int64 PerProcessUserTimeLimit public Int64 PerJobUserTimeLimit public.. public Int64 PerProcessUserTimeLimit public Int64 PerJobUserTimeLimit public Int16 LimitFlags public UInt32 MinimumWorkingSetSize.. public Int16 ActiveProcessLimit public Int64 Affinity public Int16 PriorityClass public Int16 SchedulingClass..
c# (WinForms-App) export DataSet to Excel http://stackoverflow.com/questions/373925/c-sharp-winforms-app-export-dataset-to-excel for something if value is Int16 value is Int32 value is Int64 value is SByte value is UInt16 value is UInt32 value is UInt64.. value is SByte value is UInt16 value is UInt32 value is UInt64 value is Byte WriteExcelStyledCell value CellStyle.Number ..
Get last 10 lines of very large text file > 10GB c# http://stackoverflow.com/questions/398378/get-last-10-lines-of-very-large-text-file-10gb-c-sharp tokens . public static string ReadEndTokens string path Int64 numberOfTokens Encoding encoding string tokenSeparator int sizeOfChar.. using FileStream fs new FileStream path FileMode.Open Int64 tokenCount 0 Int64 endPosition fs.Length sizeOfChar for Int64.. fs new FileStream path FileMode.Open Int64 tokenCount 0 Int64 endPosition fs.Length sizeOfChar for Int64 position sizeOfChar..
C# Equivalent of SQL Server 2005 DataTypes http://stackoverflow.com/questions/425389/c-sharp-equivalent-of-sql-server-2005-datatypes smallint SqlInt16 Int16 int SqlInt32 Int32 bigint SqlInt64 Int64 smallmoney SqlMoney Decimal money SqlMoney Decimal.. SqlInt16 Int16 int SqlInt32 Int32 bigint SqlInt64 Int64 smallmoney SqlMoney Decimal money SqlMoney Decimal numeric..
Why am I getting an Out Of Memory Exception in my C# application? http://stackoverflow.com/questions/597499/why-am-i-getting-an-out-of-memory-exception-in-my-c-sharp-application Random public Int32 holder1 public Int32 holder2 public Int64 holder3 public MemoryHolderFoo prevent from optimized out holder1.. seed.NextDouble holder2 Int32 seed.NextDouble holder3 Int64 seed.NextDouble class Program static int MemoryThreshold 1500..
Working example of CreateJobObject/SetInformationJobObject pinvoke in .net? http://stackoverflow.com/questions/6266820/working-example-of-createjobobject-setinformationjobobject-pinvoke-in-net struct JOBOBJECT_BASIC_LIMIT_INFORMATION public Int64 PerProcessUserTimeLimit public Int64 PerJobUserTimeLimit public.. public Int64 PerProcessUserTimeLimit public Int64 PerJobUserTimeLimit public Int16 LimitFlags public UIntPtr MinimumWorkingSetSize.. public Int16 ActiveProcessLimit public Int64 Affinity public Int16 PriorityClass public Int16 SchedulingClass..
Generate random values in C# http://stackoverflow.com/questions/677373/generate-random-values-in-c-sharp random values in C# How can I generate random Int64 and UInt64 values using the Random class in C# c# random long.. random values in C# How can I generate random Int64 and UInt64 values using the Random class in C# c# random long integer.. or NextDouble methods on a Random object . public static Int64 NextInt64 this Random rnd var buffer new byte sizeof Int64 rnd.NextBytes..
Anyone know a good workaround for the lack of an enum generic constraint? http://stackoverflow.com/questions/7244/anyone-know-a-good-workaround-for-the-lack-of-an-enum-generic-constraint be too hard to write IsSet ... although catering for both Int64 based and UInt64 based flags could be the tricky part. I smell.. IsSet ... although catering for both Int64 based and UInt64 based flags could be the tricky part. I smell some helper methods.. me to treat any flags enum as if it had a base type of UInt64 . What would you want the behaviour to be if you called tester.IsSet..
|