Click here to Skip to main content
15,066,326 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to spliting a string [modified] Pin
Neh.C16-Apr-10 1:18
MemberNeh.C16-Apr-10 1:18 
GeneralRe: How to spliting a string Pin
#realJSOP16-Apr-10 1:41
mva#realJSOP16-Apr-10 1:41 
GeneralRe: How to spliting a string Pin
Neh.C16-Apr-10 2:09
MemberNeh.C16-Apr-10 2:09 
AnswerRe: How to spliting a string Pin
Abhinav S16-Apr-10 1:32
MemberAbhinav S16-Apr-10 1:32 
GeneralRe: How to spliting a string Pin
ramzg16-Apr-10 1:37
Memberramzg16-Apr-10 1:37 
AnswerRe: How to spliting a string Pin
#realJSOP16-Apr-10 1:47
mva#realJSOP16-Apr-10 1:47 
GeneralRe: How to spliting a string Pin
mrkeivan16-Apr-10 1:56
Membermrkeivan16-Apr-10 1:56 
GeneralRe: How to spliting a string Pin
Ian Shlasko16-Apr-10 4:13
MemberIan Shlasko16-Apr-10 4:13 
Well, then you can do that more cleanly if you want...
[Flags]
public enum DayFlags
{
  Saturday = 64,
  Sunday = 32,
  Monday = 16,
  Tuesday = 8,
  Wednesday = 4,
  Thursday = 2,
  Friday = 1
}

public static bool IsFlagSet(this DayFlags en, DayFlags flag)
{
  return ((int)en & (int)flag) != 0;
}


DayFlags days = (DayFlags)Convert.ToInt32(str, 2);

if (days.IsFlagSet(DayFlags.Sunday)) { ... }

Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: How to spliting a string Pin
Not Active16-Apr-10 1:57
mentorNot Active16-Apr-10 1:57 
GeneralRe: How to spliting a string Pin
mrkeivan18-Apr-10 4:27
Membermrkeivan18-Apr-10 4:27 
QuestionStorage Card in csharp smart device Pin
Tunisien8616-Apr-10 0:36
MemberTunisien8616-Apr-10 0:36 
AnswerRe: Storage Card in csharp smart device Pin
Eddy Vluggen16-Apr-10 3:17
professionalEddy Vluggen16-Apr-10 3:17 
GeneralRe: Storage Card in csharp smart device Pin
Tunisien8616-Apr-10 6:44
MemberTunisien8616-Apr-10 6:44 
GeneralRe: Storage Card in csharp smart device Pin
Eddy Vluggen16-Apr-10 8:08
professionalEddy Vluggen16-Apr-10 8:08 
AnswerRe: Storage Card in csharp smart device Pin
Tunisien8619-Apr-10 5:12
MemberTunisien8619-Apr-10 5:12 
QuestionHow to create an empty tableAdapter or deliver a tableAdapter to extern function Pin
Robert König16-Apr-10 0:13
MemberRobert König16-Apr-10 0:13 
AnswerRe: How to create an empty tableAdapter or deliver a tableAdapter to extern function Pin
Morgs Morgan16-Apr-10 10:06
MemberMorgs Morgan16-Apr-10 10:06 
GeneralRe: How to create an empty tableAdapter or deliver a tableAdapter to extern function Pin
Robert König19-Apr-10 2:45
MemberRobert König19-Apr-10 2:45 
Questionload dataGrid C# Pin
toto_201015-Apr-10 23:29
Membertoto_201015-Apr-10 23:29 
AnswerRe: load dataGrid C# Pin
mrkeivan16-Apr-10 1:01
Membermrkeivan16-Apr-10 1:01 
QuestionRe: load dataGrid C# Pin
toto_201016-Apr-10 1:58
Membertoto_201016-Apr-10 1:58 
AnswerRe: load dataGrid C# Pin
Morgs Morgan16-Apr-10 2:41
MemberMorgs Morgan16-Apr-10 2:41 
GeneralRe: load dataGrid C# Pin
toto_201016-Apr-10 4:20
Membertoto_201016-Apr-10 4:20 
QuestionReguler expression [modified] Pin
bhaskarsgb15-Apr-10 23:23
Memberbhaskarsgb15-Apr-10 23:23 
AnswerRe: Reguler expression Pin
riced16-Apr-10 1:33
Memberriced16-Apr-10 1:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.