Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Search Button Pin
fjdiewornncalwe2-Nov-12 11:26
professionalfjdiewornncalwe2-Nov-12 11:26 
GeneralRe: C# Search Button Pin
MikeK322-Nov-12 11:51
MikeK322-Nov-12 11:51 
GeneralRe: C# Search Button Pin
fjdiewornncalwe2-Nov-12 11:53
professionalfjdiewornncalwe2-Nov-12 11:53 
Questioncase insensitive string comparison - relative speed Pin
Blake Miller2-Nov-12 9:31
Blake Miller2-Nov-12 9:31 
AnswerRe: case insensitive string comparison - relative speed Pin
Eddy Vluggen2-Nov-12 9:43
professionalEddy Vluggen2-Nov-12 9:43 
GeneralRe: case insensitive string comparison - relative speed Pin
Blake Miller2-Nov-12 10:26
Blake Miller2-Nov-12 10:26 
GeneralRe: case insensitive string comparison - relative speed Pin
Eddy Vluggen2-Nov-12 10:29
professionalEddy Vluggen2-Nov-12 10:29 
GeneralRe: case insensitive string comparison - relative speed Pin
SledgeHammer012-Nov-12 11:20
SledgeHammer012-Nov-12 11:20 
AnswerRe: case insensitive string comparison - relative speed Pin
Richard Deeming2-Nov-12 9:47
mveRichard Deeming2-Nov-12 9:47 
GeneralRe: case insensitive string comparison - relative speed Pin
Blake Miller2-Nov-12 10:28
Blake Miller2-Nov-12 10:28 
AnswerRe: case insensitive string comparison - relative speed Pin
Clifford Nelson2-Nov-12 10:18
Clifford Nelson2-Nov-12 10:18 
GeneralRe: case insensitive string comparison - relative speed Pin
Blake Miller2-Nov-12 10:28
Blake Miller2-Nov-12 10:28 
AnswerRe: case insensitive string comparison - relative speed Pin
jschell2-Nov-12 12:46
jschell2-Nov-12 12:46 
QuestionSpell checker in code Pin
PozzaVecia2-Nov-12 9:11
PozzaVecia2-Nov-12 9:11 
AnswerRe: Spell checker in code Pin
Eddy Vluggen2-Nov-12 9:38
professionalEddy Vluggen2-Nov-12 9:38 
GeneralRe: Spell checker in code Pin
PozzaVecia2-Nov-12 9:44
PozzaVecia2-Nov-12 9:44 
GeneralRe: Spell checker in code Pin
Eddy Vluggen2-Nov-12 10:11
professionalEddy Vluggen2-Nov-12 10:11 
GeneralRe: Spell checker in code Pin
PozzaVecia2-Nov-12 11:22
PozzaVecia2-Nov-12 11:22 
AnswerRe: Spell checker in code Pin
Eddy Vluggen2-Nov-12 11:31
professionalEddy Vluggen2-Nov-12 11:31 
AnswerRe: Spell checker in code Pin
Clifford Nelson2-Nov-12 10:26
Clifford Nelson2-Nov-12 10:26 
GeneralRe: Spell checker in code Pin
PozzaVecia2-Nov-12 11:22
PozzaVecia2-Nov-12 11:22 
QuestionSource file with repetitive data Pin
C-P-User-32-Nov-12 6:02
C-P-User-32-Nov-12 6:02 
AnswerRe: Source file with repetitive data Pin
Richard MacCutchan2-Nov-12 6:29
mveRichard MacCutchan2-Nov-12 6:29 
GeneralRe: Source file with repetitive data Pin
C-P-User-35-Nov-12 8:00
C-P-User-35-Nov-12 8:00 
Richard MacCutchan wrote:
Put them in a static class of their own with static getters, and ensure they are part of the namespace of the main application.


I'm trying to get an idea of all this.

Tried the following, and the code in other files still can't see the names of these groups of data bytes; no matter if I declare them as public or static...

C#
using System;

namespace The_Same_Namespace_As_The_Other_Files
{
    public partial class Form1 : Form
    {
        public byte[] This_Does_Not_Work = new byte[] { 0x01, 0x02 };
    }



    static class Class1
    {
        static Class1();

        public byte[] The_Command_Set_01 = new byte[] {
                                                0x01, 0x01, 0x01, 0x01, 
                                                0x01, 0x01, 0x01, 0x01, 
                                                0x01, 0x01, 0x01 
                                                }
                                                ;



        static byte[] Just_A_Test_Set = new byte[] {
                                                0xFF, 0xFE, 0xFD, 0xFC, 
                                                0xFB, 0xFA, 0xF9, 0xF8, 
                                                0xF7, 0xF6, 0xF5 
                                                }
                                                ;



	
    }
}


What do I need to do to let my methods in other files see the group called The_Command_Set_01 which is in this file ?
GeneralRe: Source file with repetitive data Pin
Richard MacCutchan5-Nov-12 22:02
mveRichard MacCutchan5-Nov-12 22:02 

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.