|
Browse by Tags
All Tags » C# ( RSS)
-
Hi Daniel, I found this method that you are using to determine whether a parent can have more than one child (is a collection). Are you sure that it is enough to test these three interfaces and the ResourceDictionary class? Where did you found this information? public static bool IsCollectionType(Type...
-
Hi Folks Is there a way to create all properties from private variables in a class? I have found only a way to create each property individually, by clicking right mouse button over the variable (option Create property). Thanks in advance... Everton Lucas
-
We're using the CSharp TextEditor as our script window in MapWindow GIS ( www.mapwindow.org ) for several years now and we're very pleased with it. A big 'Thank you!' is appropriate ;) We also use the script window for confirming bugs and testing bugfixes and enhancements. Those test...
-
Hi all, could you please explain me this part of code. What ExpectInsertionBeforeStart is used for? void textArea_Document_Changing(object sender, DocumentChangeEventArgs e) { if (e.Offset == startOffset && e.RemovalLength == 0 && ExpectInsertionBeforeStart) { startOffset = e.GetNewOffset...
-
FastZip example in cssamples has a really minor bug: case Operation.Extract: if ( argCount == 2 ) { Console.WriteLine("Extracting Zip"); fastZip.ExtractZip(arg1, arg2, overwrite, confirmOverwrite, fileFilter, dirFilter, recurse ); } else Should be: case Operation.Extract: if ( argCount == 2...
-
I'am writing on compressing and decompressing SWF files. I searched the forum for solutions but I didn't found something. Maybe you can help me. Inflate works: public Stream Uncompress( Stream input ){ byte[ content = new byte[ _Length ]; input.Seek( 0, SeekOrigin.Begin ); input.Read( content...
-
Hi I have a problem with reading zips created by SharpZipLib. When I open them with WinRar everything is ok. But when I try to open them with Windows 2003 default winzip the files inside appear to be of the same size and cannot be opened or uzipped. Is there something I'm missing? Maby some parameter...
-
I'm trying to extract the file here: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz using the code below, but I get the following error: Void set_Size(Int64) - Cannot be less than zero Parameter name: value I've extracted other files using this code but it doesn't seem...
-
Ok, I'm new to AvalonEdit so I'm sure I've missing something here, but I have a TextPosition (line, column) and I'd like to get the client x,y Point from there, based on 0,0 being the top left corner (scrolling irrelevant) as I'd like to show a nice popup user-interface where the...
-
Hi, This may be the wrong place to post and ask this (sorry), but is there a way to determine the class of a TextPosition? By this, I mean a way of determine if line 7, column 22 is quoted or a comment? The reason I ask is I'm trying to do a RegEx that finds some given tokens, but I want to ultimately...
|
|
|