Παρουσίαση με Ετικέτες

How-to: get int value via ADO.net SqlDataReader using column name
21 Ιανουαρίου 19 08:54 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Based on Sam Holder’s answer at https://stackoverflow.com/questions/7388475/reading-int-values-from-sqldatareader/54296026, just contributed an extension method for fetching Int32 values via ADO.net’s SqlDataReader, without jumping through hoops (aka first fetch column ordinal [number] by name, then fetching the int value passing the column ordinal). Would be nice if Microsoft was providing such things out of the box. namespace adonet.extensions […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
OpenStreetMaps as an alternative to Google Maps in Joomla!
26 Οκτωβρίου 18 11:31 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
If you use Joomla! (CMS / Content Management System), you could switch to the free OpenStreetMaps instead of the recently-turned-much-more-expensive Google Maps, thanks to the OSModul extension for Joomla!: https://extensions.joomla.org/profile/extension/maps-a-weather/maps-a-locations/osmodul/ At the bottom of this page there is an example that uses a pin icon similar to how a location would appear in Google Maps. […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Suggestion: C# static extension methods invokable on class type too
09 Δεκεμβρίου 15 05:30 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
it would be nice if C# supported syntax like: public static DependencyProperty Register(static DependencyProperty x, string name, Type propertyType, Type ownerType, FrameworkPropertyMetadata typeMetadata) that is static extension methods for classes, that can be invoked without a class instance (just with the class type), apart from normal extension methods that can be invoked on a class […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Visual Studio 2015 Extensions I use
13 Νοεμβρίου 15 10:34 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
This is the complete list of Visual Studio 2015 Extensions I’m using currently: Tagged: Extensions, Visual Studio
Δημοσίευση στην κατηγορία: , ,
Fix: VSIX installer error – SignatureDescription could not be created
10 Οκτωβρίου 15 02:13 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
This is my answer at: http://stackoverflow.com/questions/31552082/vsix-installer-signaturedescription-could-not-be-created-for-the-signature-algo/ to the question on why some extensions fail to install at RC (Release Candidate) versions of Visual Studio 2015, showing error “SignatureDescription could not be created for the signature algorithm supplied”. Not sure if Microsoft fixed this on purpose or by accident, but this is very useful for people […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Use MEF to implement import/export etc. plugin architecture
03 Ιουνίου 15 01:13 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Copying here my comment at a discussion on the GraphX project: https://github.com/panthernet/GraphX/pull/15 in case it helps somebody in using MEF (Managed Extensibility Framework) in their software’s architecture ——– Using static classes instead of interfaces can mean though that you need to use reflection to call them (e.g. if you wan to have a list of […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
.NET String extension methods to check for array of prefixes or suffixes
05 Απριλίου 13 10:51 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Seems StartsWith and EndsWith methods of String class in .NET are missing a version that accepts multiple (as an array) prefixes or suffixes respectively when testing the string. To achieve this I just added the following extension methods to StringExtensions class (of Utils.Extensions namespace) under Utils.Silverlight project at the ClipFlair source code. public static bool [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
.NET String class extensions to replace prefix or suffix
26 Μαρτίου 13 05:47 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Just added the following extension methods to StringExtensions class (of Utils.Extensions namespace) under Utils.Silverlight project at the ClipFlair source code. public static string ReplacePrefix( this string s, string fromPrefix, string toPrefix, StringComparison comparisonType) { return (s.StartsWith(fromPrefix, comparisonType)) ? toPrefix + s.Substring(fromPrefix.Length) : s; } public static string ReplacePrefix( this string s, string[] fromPrefix, string toPrefix, [...]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
HowTo: Make Project Linker extension’s VSIX install at Visual Studio 2012
27 Νοεμβρίου 12 10:24 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Project Linker is a Visual Studio Extension that “helps to automatically create and maintain links from a source project to a target project to share code that is common to Silverlight and WPF”. In ClipFlair, where I have shared code between a Silverlight and a WPF project (I guess same would be for XNA projects [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
Single statement ScaleTransform initialization in both WPF and SL
11 Αυγούστου 12 06:32 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
With Silverlight using a cut-down .NET API, some decisions have been at least ackward, causing Silverlight code to be sometimes unnecesserily more complex than its WPF counterpart and WPF code needing several changes to get ported for Silverlight. In ClipFlair I’ve implemented a WPFCompatibility layer to ease compiling WPF code for Silverlight (and vice-versa too) [...]
Δημοσίευση στην κατηγορία: , , , , , , ,
How to compile code that uses WPF Decorator type in Silverlight
04 Ιουλίου 12 09:57 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At ClipFlair I’m using a modified version of FloatingWindow control, where I try to make the WPF and Silverlight flavours of the original control share as much code as possible (this is work in progress currently, hoping to eventually have the WPF and Silverlight projects both link to the same source files [this is currently [...]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
Why I don’t see static extension support for constructors in C# coming
02 Ιουλίου 12 12:30 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I was hoping C# would someday add static extension support for constructors too (apart from classic methods), that would help a lot in source-level compatibility layers (for example at my WPF_Compatibility project for WPF syntax in Silverlight, which one can find under the ClipFlair source base). However, according to : http://mrpmorris.blogspot.gr/​2007/01/​net-calling-base-constructors-i​n-c.html Anders Hejlsberg (father of [...]
Δημοσίευση στην κατηγορία: , , , , , , ,
workaround: Silverlight Rect class missing ‘bool Contains(Rect)’ method
29 Απριλίου 12 08:20 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I’ve been looking into porting Kael Rowan’s ZoomableCanvas (related to ZUI code used in Code Canvas, Debugger Canvas etc. VisualStudio add-ons) from WPF to Silverlight. One of the issues I found was that Silverlight’s Rect class (I guess this is a case for .NET Compact Framework in general) doesn’t have a method to check if [...]
Δημοσίευση στην κατηγορία: , , , , , , ,

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές