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

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, [...]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
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

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

Συνδρομές