¡@

Home 

c# Programming Glossary: hashtable

.NET HashTable Vs Dictionary - Can the Dictionary be as fast?

http://stackoverflow.com/questions/1089132/net-hashtable-vs-dictionary-can-the-dictionary-be-as-fast

TKey TValue and System.Collections.Hashtable classes both maintain a hash table data structure internally... for each hash table bucket to resolve collisions whereas Hashtable uses rehashing for collision resolution when a collision occurs.. map the key to a bucket . There is little benefit to use Hashtable class if you are targeting for .NET Framework 2.0 . It's effectively..

How to update textbox on GUI from another thread in C#

http://stackoverflow.com/questions/1136399/how-to-update-textbox-on-gui-from-another-thread-in-c-sharp

BinaryClientFormatterSinkProvider IDictionary props new Hashtable props port listeningChannel HttpChannel channel new HttpChannel.. BinaryClientFormatterSinkProvider IDictionary props new Hashtable props port 0 channel new HttpChannel props clntFormatter srvFormatter..

.Net Data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary — Speed, memory, and when to use each?

http://stackoverflow.com/questions/128636/net-data-structures-arraylist-list-hashtable-dictionary-sortedlist-sorted

detail. What's the difference between Array ArrayList List Hashtable Dictionary SortedList and SortedDictionary Which ones are enumerable.. string . Other than that acts very much like ArrayList . Hashtable plain old hashtable. O 1 to O n worst case. Can enumerate the..

What are the true benefits of ExpandoObject?

http://stackoverflow.com/questions/1653046/what-are-the-true-benefits-of-expandoobject

over using a Dictionary string object or really even a Hashtable As far as I can tell this is nothing but a hash table that you..

Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) - possible?

http://stackoverflow.com/questions/1952638/single-assembly-multi-language-windows-forms-deployment-ilmerge-and-satellite-a

be re specified here. private static void AddResourceSet Hashtable localResourceSets CultureInfo culture ref ResourceSet rs lock..

Why is Dictionary preferred over hashtable?

http://stackoverflow.com/questions/301371/why-is-dictionary-preferred-over-hashtable

meant why do we use the Dictionary class instead of the Hashtable class then it's an easy answer Dictionary is a generic type.. then it's an easy answer Dictionary is a generic type Hashtable is not. That means you get type safety with Dictionary because..

Is there any significant difference between using if/else and switch-case in C#?

http://stackoverflow.com/questions/395618/is-there-any-significant-difference-between-using-if-else-and-switch-case-in-c

and make a lookup on that table followed by jump. Hashtable lookup is not strictly O 1 and has noticeable constant costs..

Dynamic LINQ OrderBy on IEnumerable<T>

http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet

way to do it with LINQ to Objects. Note that the choice of Hashtable is due to favorable locking semantics using Microsoft.CSharp.RuntimeBinder.. static class AccessorCache private static readonly Hashtable accessors new Hashtable private static readonly Hashtable callSites.. private static readonly Hashtable accessors new Hashtable private static readonly Hashtable callSites new Hashtable private..

Serialize Class containing Dictionary member

http://stackoverflow.com/questions/495647/serialize-class-containing-dictionary-member

path and have tried using Dictionary HybridDictionary and Hashtable for this but I always get the following error when calling ConfigFile.Load..

.NET unique object identifier

http://stackoverflow.com/questions/750947/net-unique-object-identifier

instances can quite easily get the same hash code Hashtable hashCodesSeen new Hashtable LinkedList object l new LinkedList.. easily get the same hash code Hashtable hashCodesSeen new Hashtable LinkedList object l new LinkedList object int n 0 while true..

Best way to really grok Java-ME for a C# guy [closed]

http://stackoverflow.com/questions/90578/best-way-to-really-grok-java-me-for-a-c-sharp-guy

instead of const Gotcha #4 Where is ArrayList Vector or Hashtable The most used data structures in java are HashSet ArrayList..

.NET HashTable Vs Dictionary - Can the Dictionary be as fast?

http://stackoverflow.com/questions/1089132/net-hashtable-vs-dictionary-can-the-dictionary-be-as-fast

one is a bit ambiguous . c# .net collections dictionary hashtable share improve this question System.Collections.Generic.Dictionary..

.Net Data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary — Speed, memory, and when to use each?

http://stackoverflow.com/questions/128636/net-data-structures-arraylist-list-hashtable-dictionary-sortedlist-sorted

that acts very much like ArrayList . Hashtable plain old hashtable. O 1 to O n worst case. Can enumerate the value and keys properties..

How does HttpContext.Current work in a multi-threaded environment?

http://stackoverflow.com/questions/1561036/how-does-httpcontext-current-work-in-a-multi-threaded-environment

and then uses that to look up the http context in some hashtable or other static storage mechanism . Either way it's a technique..

How do I generate a hashcode from a byte array in c#

http://stackoverflow.com/questions/16340/how-do-i-generate-a-hashcode-from-a-byte-array-in-c-sharp

about that I'm just using the hashcode as a key into a hashtable . Here's what I have today struct SomeData IEquatable SomeData..

Compare two DataTables to determine rows in one but not the other

http://stackoverflow.com/questions/164144/compare-two-datatables-to-determine-rows-in-one-but-not-the-other

or some other unique ID for that row into a dictionary or hashtable if you prefer to call it that . Run through table 2 and for..

Fastest method for SQL Server inserts, updates, selects

http://stackoverflow.com/questions/2862428/fastest-method-for-sql-server-inserts-updates-selects

your SP params and their values into an array or hashtable then passing to a more abstract method that parses the collection..

Why is Dictionary preferred over hashtable?

http://stackoverflow.com/questions/301371/why-is-dictionary-preferred-over-hashtable

is Dictionary preferred over hashtable In most of programming languages dictionaries are preferred.. of programming languages dictionaries are preferred over hashtables. What are the reasons behind that c# .net vb.net data structures..

When to use a HashTable

http://stackoverflow.com/questions/3061182/when-to-use-a-hashtable

as you can't modify an enumeration preferred over hashtable as that's not strictly typed preferred over sortedlist when..

Hashtable to Dictionary<> syncroot .

http://stackoverflow.com/questions/327654/hashtable-to-dictionary-syncroot

dictionaries don't. If I have code that does this lock hashtable.Syncroot .... How do I replicate this if I am removing the hashtable.. .... How do I replicate this if I am removing the hashtable and changing to generic dictionaries c# generics dictionary.. changing to generic dictionaries c# generics dictionary hashtable share improve this question If you are going strictly for..

Why are C# interface methods not declared abstract or virtual?

http://stackoverflow.com/questions/3621410/why-are-c-sharp-interface-methods-not-declared-abstract-or-virtual

How to do joins in LINQ on multiple fields in single join

http://stackoverflow.com/questions/373541/how-to-do-joins-in-linq-on-multiple-fields-in-single-join

a lookup based on the inner sequence think of it as a hashtable from key to a sequence of entries matching that key. Doing that..

Best way to remove duplicate entries from a data table

http://stackoverflow.com/questions/4415519/best-way-to-remove-duplicate-entries-from-a-data-table

new ArrayList Add list of all the unique item value to hashtable which stores combination of key value pair. And add duplicate..

Serialize Class containing Dictionary member

http://stackoverflow.com/questions/495647/serialize-class-containing-dictionary-member

IDictionary. Check out this link . Q Why can't I serialize hashtables A The XmlSerializer cannot process classes implementing the.. to schedule constraints and partly due to the fact that a hashtable does not have a counterpart in the XSD type system. The only.. type system. The only solution is to implement a custom hashtable that does not implement the IDictionary interface. So I think..

How to get object size in memory? [duplicate]

http://stackoverflow.com/questions/605621/how-to-get-object-size-in-memory

object consumes in memory in C# . for example how much my hashtable or SortedList or List. c# performance memory share improve..

.NET unique object identifier

http://stackoverflow.com/questions/750947/net-unique-object-identifier

would be trivial. I wanted the unique ID for building a hashtable ID object to be able to lookup already seen objects. For now.. seen objects. For now I solved it like this Build a hashtable 'hashCode' list of objects with hash code 'hashCode' Find if.. with hash code 'hashCode' Find if object seen o candidates hashtable o.GetHashCode Objects with the same hashCode. If no candidates..

Tuples( or arrays ) as Dictionary keys in C#

http://stackoverflow.com/questions/955982/tuples-or-arrays-as-dictionary-keys-in-c-sharp

it is how I would do it in javascript. c# dictionary hashtable tuples share improve this question If you are on .NET 4.0..

What .NET collection provides the fastest search

http://stackoverflow.com/questions/1009107/what-net-collection-provides-the-fastest-search

a 20k lookup list. Is there a collection object like List HashTable that provides an exceptionly fast .Contains method Or will I..

.NET HashTable Vs Dictionary - Can the Dictionary be as fast?

http://stackoverflow.com/questions/1089132/net-hashtable-vs-dictionary-can-the-dictionary-be-as-fast

HashTable Vs Dictionary Can the Dictionary be as fast I am trying to.. trying to figure out when and why to use a Dictionary or a HashTable. I have done a bit of a search on here and have found people.. the order they are inserted thing it is sorted. Where as a HashTable will. As I understand it this leads to the HashTable being far..

.Net Data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary — Speed, memory, and when to use each?

http://stackoverflow.com/questions/128636/net-data-structures-arraylist-list-hashtable-dictionary-sortedlist-sorted

Data structures ArrayList List HashTable Dictionary SortedList SortedDictionary &mdash Speed memory and..

How do I generate a hashcode from a byte array in c#

http://stackoverflow.com/questions/16340/how-do-i-generate-a-hashcode-from-a-byte-array-in-c-sharp

into roughly even groups it shouldn't form the key as the HashTable or Dictionary will need to use the hash to optimise retrieval...

C# Set collection?

http://stackoverflow.com/questions/183685/c-sharp-set-collection

that you can somewhat mimic a set using a Dictionary or a HashTable by populating but ignoring the values but that's not a very..

How to save the IsExpanded state in group headers of a listview

http://stackoverflow.com/questions/2808777/how-to-save-the-isexpanded-state-in-group-headers-of-a-listview

states per ObjectType. I was experimenting with a bound HashTable and a Converter but I failed at providing the ObjectType as..

When to use a HashTable

http://stackoverflow.com/questions/3061182/when-to-use-a-hashtable

to use a HashTable In C# I find myself using a List IList or IEnumerable 99 of.. the time. Is there a case when t would be better to use a HashTable or Dictionary in 2.0 and above over these edit As pointed out..

Is there any significant difference between using if/else and switch-case in C#?

http://stackoverflow.com/questions/395618/is-there-any-significant-difference-between-using-if-else-and-switch-case-in-c

is big enough to cover overheads C# compiler will create a HashTable object populate it with string constants and make a lookup on..

How to handle session end in global.asax?

http://stackoverflow.com/questions/621744/how-to-handle-session-end-in-global-asax

end in global.asax I'm working in chat application I used HashTable for containing User and Operator as a Key Object of ChatRoom.. Operator as a Key Object of ChatRoom Class as a value of HashTable. Main problem is that When user or Operator close browser or..

Hashtable with MultiDimensional Key in C#

http://stackoverflow.com/questions/689940/hashtable-with-multidimensional-key-in-c-sharp

c#. Eventually I would be able to do something like this HashTable 1 false 5 int a HashTable 1 false a 5 This is what I've been.. able to do something like this HashTable 1 false 5 int a HashTable 1 false a 5 This is what I've been trying...hasn't worked Hashtable..

What is the Generic version of a Hashtable?

http://stackoverflow.com/questions/772831/what-is-the-generic-version-of-a-hashtable

Note that Dictionary is not a 100 drop in replacement for HashTable. There is a slight difference in the way they handle NULLs... if you try to reference a key that doesn't exist. The HashTable will just return null. The reason is that the value might be..

How to speed adding items to a ListView?

http://stackoverflow.com/questions/9008310/how-to-speed-adding-items-to-a-listview

EndUpdate another pass through where they are added to a HashTable and a Debug.Assert listItemsTable.ContainsKey ItemId will slow..

Why SortedSet<T>.GetViewBetween isn't O(log N)?

http://stackoverflow.com/questions/9850975/why-sortedsett-getviewbetween-isnt-olog-n

the data is not modified during the foreach For example HashTable 's MoveNext public virtual bool MoveNext if this.version this.hashtable.version..