Click here to Skip to main content
15,916,462 members
Home / Discussions / C#
   

C#

 
QuestionSSRS Date format help required Pin
siddisagar21-Dec-09 18:03
siddisagar21-Dec-09 18:03 
AnswerRe: SSRS Date format help required Pin
Saksida Bojan21-Dec-09 19:29
Saksida Bojan21-Dec-09 19:29 
QuestionSqlite + TEXT Pin
Ryan Minor21-Dec-09 11:06
Ryan Minor21-Dec-09 11:06 
AnswerRe: Sqlite + TEXT Pin
S. Brozius21-Dec-09 11:40
S. Brozius21-Dec-09 11:40 
QuestionScroll bar apperance Pin
viciouskinid21-Dec-09 10:58
viciouskinid21-Dec-09 10:58 
AnswerRe: Scroll bar apperance Pin
Luc Pattyn21-Dec-09 11:27
sitebuilderLuc Pattyn21-Dec-09 11:27 
GeneralRe: Scroll bar apperance Pin
viciouskinid21-Dec-09 11:32
viciouskinid21-Dec-09 11:32 
QuestionVB to C# conversion. Implements Pin
aalex67521-Dec-09 5:56
aalex67521-Dec-09 5:56 
I am converting a class from VB to C# so that it can be compiled into the same assembly, but have run into something that I don't know how to handle. The class is a generic ObservableDictionary<tkey, tvalue="">. My problem is that I don't know how to implement both System.Collections.Generic.IEnumerable.GetEnumerator and System.Collections.IEnumerable.GetEnumerator since both of them need an exposed function named GetEnumerator().

The VB code is as follows:
Public Function GetEnumerator() 
  As System.Collections.Generic.IEnumerator(
  Of System.Collections.Generic.KeyValuePair(Of TKey, TValue)) 
  Implements System.Collections.Generic.IEnumerable(
  Of System.Collections.Generic.KeyValuePair(Of TKey, TValue)).GetEnumerator

    Return DirectCast(Dictionary, IDictionary).GetEnumerator()
End Function

Private Function GetEnumerator1() 
  As System.Collections.IEnumerator
  Implements System.Collections.IEnumerable.GetEnumerator

    Return GetEnumerator()
End Function


It looks to me like the VB code is renaming the GetEnumerator function to GetEnumerator1 and explicitly mapping this back to the GetEnumerator function that is being implemented, but I have never seen anything like this in C#.

Is this possible in C#?
AnswerRe: VB to C# conversion. Implements Pin
Ian Shlasko21-Dec-09 6:17
Ian Shlasko21-Dec-09 6:17 
QuestionHow is the algorithm to compare a "lot" of strings, tell z frequency and tell which similar strings are found in which index? Pin
CoderForEver21-Dec-09 5:39
CoderForEver21-Dec-09 5:39 
AnswerRe: How is the algorithm to compare a "lot" of strings, tell z frequency and tell which similar strings are found in which index? Pin
Richard MacCutchan21-Dec-09 6:04
mveRichard MacCutchan21-Dec-09 6:04 
GeneralRe: How is the algorithm to compare a "lot" of strings, tell z frequency and tell which similar strings are found in which index? Pin
CoderForEver21-Dec-09 6:43
CoderForEver21-Dec-09 6:43 
GeneralRe: How is the algorithm to compare a "lot" of strings, tell z frequency and tell which similar strings are found in which index? Pin
Richard MacCutchan21-Dec-09 6:51
mveRichard MacCutchan21-Dec-09 6:51 
GeneralRe: How is the algorithm to compare a "lot" of strings, tell z frequency and tell which similar strings are found in which index? Pin
CoderForEver21-Dec-09 6:57
CoderForEver21-Dec-09 6:57 
GeneralRe: How is the algorithm to compare a "lot" of strings, tell z frequency and tell which similar strings are found in which index? Pin
Richard MacCutchan21-Dec-09 9:03
mveRichard MacCutchan21-Dec-09 9:03 
AnswerRe: How is the algorithm to compare a "lot" of strings, tell z frequency and tell which similar strings are found in which index? Pin
Alan Balkany21-Dec-09 9:55
Alan Balkany21-Dec-09 9:55 
QuestionC# for beginners Pin
APolancoS21-Dec-09 5:31
APolancoS21-Dec-09 5:31 
AnswerRe: C# for beginners Pin
EliottA21-Dec-09 5:33
EliottA21-Dec-09 5:33 
GeneralRe: C# for beginners Pin
APolancoS21-Dec-09 16:15
APolancoS21-Dec-09 16:15 
AnswerRe: C# for beginners Pin
Richard MacCutchan21-Dec-09 6:06
mveRichard MacCutchan21-Dec-09 6:06 
AnswerRe: C# for beginners Pin
V.21-Dec-09 20:38
professionalV.21-Dec-09 20:38 
AnswerRe: C# for beginners Pin
Rob Philpott21-Dec-09 21:57
Rob Philpott21-Dec-09 21:57 
QuestionSelect a perticular value in combo box Pin
NarVish21-Dec-09 5:05
NarVish21-Dec-09 5:05 
AnswerRe: Select a perticular value in combo box Pin
dbrenth21-Dec-09 7:51
dbrenth21-Dec-09 7:51 
QuestionHow can i make shortcut keys by using code Pin
inayat basha21-Dec-09 4:49
inayat basha21-Dec-09 4:49 

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.