Click here to Skip to main content
15,894,720 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to set my own serial key Pin
Paul Conrad14-Sep-07 19:03
professionalPaul Conrad14-Sep-07 19:03 
QuestionI need DLL or Tools For Convert PDF to Image Pin
sakthi dasan9-Sep-07 20:42
sakthi dasan9-Sep-07 20:42 
Questionhelp with search program related to pdf files Pin
noobneedshelp9-Sep-07 20:36
noobneedshelp9-Sep-07 20:36 
Questioncross thread..? How to populated a textbox with serial input?I Pin
mercenary019-Sep-07 20:24
mercenary019-Sep-07 20:24 
AnswerRe: cross thread..? How to populated a textbox with serial input?I Pin
bigbrownbeaver9-Sep-07 21:11
bigbrownbeaver9-Sep-07 21:11 
GeneralRe: cross thread..? How to populated a textbox with serial input?I Pin
blackjack21509-Sep-07 21:21
blackjack21509-Sep-07 21:21 
GeneralRe: cross thread..? How to populated a textbox with serial input?I Pin
bigbrownbeaver9-Sep-07 21:59
bigbrownbeaver9-Sep-07 21:59 
GeneralRe: cross thread..? How to populated a textbox with serial input?I Pin
lmoelleb10-Sep-07 0:02
lmoelleb10-Sep-07 0:02 
QuestionTransformation n ZoomIn/ZoomOut Pin
KrunalC9-Sep-07 20:16
KrunalC9-Sep-07 20:16 
QuestionCapturing Arrow Keys Pin
ahojed9-Sep-07 19:46
ahojed9-Sep-07 19:46 
AnswerRe: Capturing Arrow Keys Pin
Giorgi Dalakishvili9-Sep-07 20:40
mentorGiorgi Dalakishvili9-Sep-07 20:40 
GeneralRe: Capturing Arrow Keys Pin
ahojed10-Sep-07 4:56
ahojed10-Sep-07 4:56 
AnswerRe: Capturing Arrow Keys Pin
Luc Pattyn10-Sep-07 0:54
sitebuilderLuc Pattyn10-Sep-07 0:54 
QuestionDataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 19:04
C#Coudou9-Sep-07 19:04 
AnswerRe: DataGridViewRow using Dataset Pin
Assaf829-Sep-07 19:30
Assaf829-Sep-07 19:30 
GeneralRe: DataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 19:41
C#Coudou9-Sep-07 19:41 
GeneralRe: DataGridViewRow using Dataset Pin
T.EDY9-Sep-07 19:53
T.EDY9-Sep-07 19:53 
GeneralRe: DataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 20:06
C#Coudou9-Sep-07 20:06 
GeneralRe: DataGridViewRow using Dataset Pin
Assaf829-Sep-07 20:08
Assaf829-Sep-07 20:08 
GeneralRe: DataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 20:12
C#Coudou9-Sep-07 20:12 
GeneralRe: DataGridViewRow using Dataset Pin
Assaf829-Sep-07 20:14
Assaf829-Sep-07 20:14 
GeneralRe: DataGridViewRow using Dataset Pin
C#Coudou9-Sep-07 20:47
C#Coudou9-Sep-07 20:47 
GeneralRe: DataGridViewRow using Dataset Pin
Assaf829-Sep-07 22:35
Assaf829-Sep-07 22:35 
Questionhelp needed for Dictionary concept Pin
Parvai9-Sep-07 17:21
Parvai9-Sep-07 17:21 
AnswerRe: help needed for Dictionary concept [modified] Pin
Are Jay9-Sep-07 18:37
Are Jay9-Sep-07 18:37 
I have two different ways:
// Cleaner less controll over the dictionary
private Dictionary<<string, double>> innerTable;
private Dictionary<<string, Dictionary<<string, double>>>> outterTable;

public DataAccessLayer()
{
  innerTable = new Dictionary<<string,double>>();
  outterTable = new Dictionary<<string, Dictionary<<string, double>>>>();

  innerTable.Add( "stringKey", 12312.012 );
  outterTable.Add( "anotherStringKey", innerTable );
}

// Longer but you'll define both dictionaries
// and how all the methods work.
public class UsingMyNewCollections
{
  // default constructor
  public UsingMyNewCollections()
  {
    InnerDictionary inner = new InnerDictionary();
    inner.Add( "StringKey", 1213.0123D );


    OutterDictionary outter = new OutterDictionary();
    batchTable.Add( "SomeKeyString", outter );
  }
}

public class OutterDictionary : IDictionary<<string, InnerDictionary>>
{
  // private field for the class
  private Dictionary<<string, InnerDictionary>> m_outterDictionary;

  // default constructor
  public OutterDictionary()
  {
    m_outterDictionary = new Dictionary<<string, InnerDictionary>>();
  }

  public void Add( string key, InnerDictionary value )
  {
    // Validation on passed in values
    // ...

    // Add your value
    m_outterDictionary.Add( key, value );
  }

  #region IDictionary<<string,MyTable>> Members
  // code
  #endregion

  #region ICollection<<KeyValuePair<<string,MyTable>>>> Members
  // code
  #endregion

  #region IEnumerable<<KeyValuePair<<string,MyTable>>>> Members
  // code
  #endregion

  #region IEnumerable Members
  //code
  #endregion
}

public class InnerDictionary : IDictionary<<string, double>>
{
  // private field for the class
  private Dictionary<<string, double>> m_innerDictionary;

  // default constructor
  public InnerDictionary()
  {
    m_innerDictionary = new Dictionary<<string, double>>();
  }

  public void Add( string key, double value )
  {
    // Validation on passed in values
    // ...

    // Add your value
    m_innerDictionary.Add( key, value );
  }

  #region IDictionary<<string,double>> Members
  // code
  #endregion

  #region ICollection<<KeyValuePair<<string,double>>>> Members
  // code
  #endregion

  #region IEnumerable<<KeyValuePair<<string,double>>>> Members
  // code
  #endregion

  #region IEnumerable Members
  // code
  #endregion
}

MSDN on using the DictionaryBase.Dictionary[^]


I'm listening but I only speak GEEK.

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.