Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I include textbox data in SQL query? Pin
JHizzle4-Aug-10 21:55
JHizzle4-Aug-10 21:55 
GeneralRe: How do I include textbox data in SQL query? Pin
Joe Stansfield10-Aug-10 14:01
Joe Stansfield10-Aug-10 14:01 
AnswerRe: How do I include textbox data in SQL query? Pin
Pete O'Hanlon5-Aug-10 0:19
mvePete O'Hanlon5-Aug-10 0:19 
AnswerRe: How do I include textbox data in SQL query? Pin
PIEBALDconsult5-Aug-10 3:08
mvePIEBALDconsult5-Aug-10 3:08 
AnswerMessage Removed Pin
5-Aug-10 3:40
brunoseixas5-Aug-10 3:40 
GeneralRe: How do I include textbox data in SQL query? Pin
Pete O'Hanlon5-Aug-10 11:42
mvePete O'Hanlon5-Aug-10 11:42 
QuestionUrgent Pin
S.Bharath Ram4-Aug-10 16:57
S.Bharath Ram4-Aug-10 16:57 
AnswerRe: Urgent Pin
Yusuf4-Aug-10 17:44
Yusuf4-Aug-10 17:44 
AnswerRe: Urgent Pin
Prosanta Kundu online4-Aug-10 20:33
Prosanta Kundu online4-Aug-10 20:33 
AnswerRe: Urgent Pin
Abhinav S4-Aug-10 20:34
Abhinav S4-Aug-10 20:34 
GeneralRe: Urgent Pin
Keith Barrow4-Aug-10 21:15
professionalKeith Barrow4-Aug-10 21:15 
GeneralRe: Urgent Pin
Abhinav S4-Aug-10 22:51
Abhinav S4-Aug-10 22:51 
QuestionHelp me figure out a Generic Dictionary problem for a game! [modified] Pin
venomation4-Aug-10 13:02
venomation4-Aug-10 13:02 
Edit : I have tried Dictionary<string[,], Texture2D> _lookup but doesnt work Frown | :(

In xna I want to create a texture2D factory class so that I can grab preloaded textures on the fly without having to load them repeatedly.

I want something like

paddleTexture = GetData<Texture2D>(string foldername,string assetname)

for example:

GetData<Texture2D>("Sprite","paddle");

But I am having generic Dictionary troubles Frown | :(
I just cant seem to create its structure properly !

I have tried Dictionary<string ,Dictionary<string,Texture2D>> which is not what I want at all and I also load the data via a simple XML file:

<?xml version="1.0" encoding="utf-8"?>
<FileSystem>
<Folder Name="Sprite" Location = "Image/2D/Sprite">
<Texture Name ="paddle"></Texture>
<Texture Name ="ball"></Texture>
</Folder>
</FileSystem>

Can anyone help me with the structure of the generic Dictionary?

Thanks ! Big Grin | :-D



-- Modified Wednesday, August 4, 2010 7:51 PM
AnswerRe: Help me figure out a Generic Dictionary problem for a game! Pin
venomation4-Aug-10 14:02
venomation4-Aug-10 14:02 
Question"Not enough storage is available to process this command" Pin
Alan Balkany4-Aug-10 11:05
Alan Balkany4-Aug-10 11:05 
AnswerRe: "Not enough storage is available to process this command" Pin
Yusuf4-Aug-10 11:10
Yusuf4-Aug-10 11:10 
AnswerSOLVED. Pin
Alan Balkany5-Aug-10 5:10
Alan Balkany5-Aug-10 5:10 
Questionevent handling on object in a container from a dll [solved] Pin
Louis-Etienne Chicoine4-Aug-10 10:08
Louis-Etienne Chicoine4-Aug-10 10:08 
AnswerRe: event handling on object in a container from a dll Pin
Luc Pattyn4-Aug-10 11:17
sitebuilderLuc Pattyn4-Aug-10 11:17 
QuestionRegex and Split() usage Pin
JoeSchmoe0074-Aug-10 9:05
JoeSchmoe0074-Aug-10 9:05 
AnswerRe: Regex and Split() usage Pin
Ennis Ray Lynch, Jr.4-Aug-10 9:26
Ennis Ray Lynch, Jr.4-Aug-10 9:26 
GeneralRe: Regex and Split() usage Pin
JoeSchmoe0074-Aug-10 9:28
JoeSchmoe0074-Aug-10 9:28 
GeneralRe: Regex and Split() usage Pin
T M Gray4-Aug-10 9:54
T M Gray4-Aug-10 9:54 
AnswerRe: Regex and Split() usage Pin
T M Gray4-Aug-10 9:42
T M Gray4-Aug-10 9:42 
GeneralRe: Regex and Split() usage Pin
JoeSchmoe0074-Aug-10 9:50
JoeSchmoe0074-Aug-10 9:50 

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.