¡@

Home 

c# Programming Glossary: mask

Create “Hello Wold” WebSocket example

http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example

Data Framing . And from client to server as well implement masking for data based on provided 4 bytes in message header. Although.. Although from server to client you don't need to apply masking over data. Read section 5. Data Framing in specification... details from header based on Framing specification then if mask provided another 4 bytes and then length that might be 1 4 or..

Why should I use int instead of a byte or short in C#

http://stackoverflow.com/questions/1097467/why-should-i-use-int-instead-of-a-byte-or-short-in-c-sharp

CPU has to read the 32 bit block that contains it and then mask out the upper 24 bits. To write a byte it has to read the destination..

Bit fields in C#

http://stackoverflow.com/questions/14464/bit-fields-in-c-sharp

BitfieldLengthAttribute attrs 0 .Length Calculate a bitmask of the desired length long mask 0 for int i 0 i fieldLength.. 0 .Length Calculate a bitmask of the desired length long mask 0 for int i 0 i fieldLength i mask 1 i r UInt32 f.GetValue.. desired length long mask 0 for int i 0 i fieldLength i mask 1 i r UInt32 f.GetValue t mask offset offset int fieldLength..

How to calculate the IP range when the IP address and the netmask is given?

http://stackoverflow.com/questions/1470792/how-to-calculate-the-ip-range-when-the-ip-address-and-the-netmask-is-given

to calculate the IP range when the IP address and the netmask is given When a IP Range is written as aaa.bbb.ccc.ddd netmask.. is given When a IP Range is written as aaa.bbb.ccc.ddd netmask CIDR Notation I need to calculate the first and the last included.. 192.168.0.1 25 Result 192.168.0.1 192.168.0.126 c# ip netmask share improve this question my good friend Alessandro have..

Iterate over values in Flags Enum?

http://stackoverflow.com/questions/4171140/iterate-over-values-in-flags-enum

new List Enum for int i values.Length 1 i 0 i ulong mask Convert.ToUInt64 values i if i 0 mask 0L break if bits mask.. 1 i 0 i ulong mask Convert.ToUInt64 values i if i 0 mask 0L break if bits mask mask results.Add values i bits mask.. Convert.ToUInt64 values i if i 0 mask 0L break if bits mask mask results.Add values i bits mask if bits 0L return Enumerable.Empty..

What indicates an Office Open XML Cell contains a Date/Time value?

http://stackoverflow.com/questions/4730152/what-indicates-an-office-open-xml-cell-contains-a-date-time-value

The style xf in turn references a number format mask. To identify a cell that contains a date you need to perform.. lookup then identify whether that numberformat mask is a date time numberformat mask rather than for example a percentage.. whether that numberformat mask is a date time numberformat mask rather than for example a percentage or an accounting numberformat..

TreeView Remove CheckBox by some Nodes

http://stackoverflow.com/questions/4826556/treeview-remove-checkbox-by-some-nodes

8 CharSet CharSet.Auto private struct TVITEM public int mask public IntPtr hItem public int state public int stateMask MarshalAs.. node TVITEM tvi new TVITEM tvi.hItem node.Handle tvi.mask TVIF_STATE tvi.stateMask TVIS_STATEIMAGEMASK tvi.state 0 SendMessage..

What is the best workaround for the WCF client `using` block issue?

http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue

MSDN article wrapping a WCF client in a using block could mask any errors that result in the client being left in a faulted.. it's in a faulted state. The original exception is then masked by the second exception. Not good. The suggested workaround.. able to allow the using block again without the danger of masking a faulted state exception. So are there any other gotchas..

How to I display a sort arrow in the header of a list view column using C#?

http://stackoverflow.com/questions/254129/how-to-i-display-a-sort-arrow-in-the-header-of-a-list-view-column-using-c

LayoutKind.Sequential public struct HDITEM public Mask mask public int cxy MarshalAs UnmanagedType.LPTStr public string.. _WIN32_WINNT 0x0600 public uint state Flags public enum Mask Format 0x4 HDI_FORMAT Flags public enum Format SortDown 0x200.. new IntPtr columnNumber var item new HDITEM mask HDITEM.Mask.Format if SendMessage columnHeader HDM_GETITEM columnPtr ref..

How to set Regex Expression as the Mask for a MaskedTextBox in C#?

http://stackoverflow.com/questions/3075534/how-to-set-regex-expression-as-the-mask-for-a-maskedtextbox-in-c

to set Regex Expression as the Mask for a MaskedTextBox in C# I want to set the Mask of MaskedtextBox.. to set Regex Expression as the Mask for a MaskedTextBox in C# I want to set the Mask of MaskedtextBox from.. as the Mask for a MaskedTextBox in C# I want to set the Mask of MaskedtextBox from Regex expression. Such as i want a valid..

Check if IP is in LAN (behind firewalls and routers)

http://stackoverflow.com/questions/7232287/check-if-ip-is-in-lan-behind-firewalls-and-routers

in properties.UnicastAddresses Console.WriteLine 0 Mask 1 address.Address address.IPv4Mask Or similar techniques.. Console.WriteLine 0 Mask 1 address.Address address.IPv4Mask Or similar techniques only deliver the information of the.. var ifAddr in properties.UnicastAddresses if ifAddr.IPv4Mask null ifAddr.Address.AddressFamily AddressFamily.InterNetwork..

C# - Capturing the Mouse cursor image

http://stackoverflow.com/questions/918990/c-sharp-capturing-the-mouse-cursor-image

get around it. The ICONINFO struct contains two members hbmMask and hbmColor that contain the mask and color bitmaps respectively.. added to clearly show the image boundaries Default Cursor Mask Bitmap Default Cursor Color Bitmap When Windows draws the default.. added to clearly show the image boundaries I Beam Cursor Mask Bitmap According to the ICONINFO documentation the I Beam cursor..