c# Programming Glossary: converter
include line numbers in stack trace without pdb? http://stackoverflow.com/questions/1328836/include-line-numbers-in-stack-trace-without-pdb During your build process use Mike Stall's pdb2xml converter distributed as part of his excellent MDbg managed code debugger..
Weak event handler model for use with lambdas http://stackoverflow.com/questions/1747235/weak-event-handler-model-for-use-with-lambdas S TDelegate TArgs Func EventHandler TArgs TDelegate converter Action TDelegate add Action TDelegate remove S subscriber Action.. WeakReference subscriber TDelegate handler null handler converter new EventHandler TArgs s e var subs_strong_ref subs_weak_ref.Target..
Using FFmpeg in .net? http://stackoverflow.com/questions/2527963/using-ffmpeg-in-net big challenge but i want to write a basic movie player converter in c# using the FFmpeg library. However the first obstacle i..
Making a generic property http://stackoverflow.com/questions/271347/making-a-generic-property to convert since they allow a class to define it's own converter. Edit note that when calling the generic method you must specify..
How To Represent 0.1 In Floating Point Arithmetic And Decimal http://stackoverflow.com/questions/3448777/how-to-represent-0-1-in-floating-point-arithmetic-and-decimal I've always pointed people towards Harald Schmidt's online converter along with the Wikipedia IEEE754 1985 article with its nice..
How do you test your Request.QueryString[] variables? http://stackoverflow.com/questions/349742/how-do-you-test-your-request-querystring-variables value null throw new ArgumentOutOfRangeException key var converter TypeDescriptor.GetConverter typeof T if converter.CanConvertFrom.. key var converter TypeDescriptor.GetConverter typeof T if converter.CanConvertFrom typeof string throw new ArgumentException String.Format..
Is there a way to programmatically convert VB6 Formatting strings to .NET Formatting strings? http://stackoverflow.com/questions/4072490/is-there-a-way-to-programmatically-convert-vb6-formatting-strings-to-net-format reference for VB6 format strings Does anyone know of a converter from VB6 formatting strings to .NET strings I'm working on porting..
Where can I find a Java to C# converter? http://stackoverflow.com/questions/443010/where-can-i-find-a-java-to-c-sharp-converter can I find a Java to C# converter I needed to convert a Java 1.5se app to C# 2.0. Does anyone..
Capture username with log4net http://stackoverflow.com/questions/4813242/capture-username-with-log4net name ConversionPattern value d t 5p User HTTPUser m n converter name value HTTPUser type value Log4NetTest.HttpContextUserPatternConverter.. type value Log4NetTest.HttpContextUserPatternConverter converter layout In addition you could build other pattern converters.. converter layout In addition you could build other pattern converters that use the Option parameter see the example at the link above..
OneWayToSource Binding seems broken in .NET 4.0 http://stackoverflow.com/questions/4875751/onewaytosource-binding-seems-broken-in-net-4-0 property on and you want the old behavior you can use a converter. Here is a blocking converter with state public class BlockingConverter.. old behavior you can use a converter. Here is a blocking converter with state public class BlockingConverter IValueConverter public.. Button Content Click StackPanel Grid Note that because the converter has a state you need a separate instance each time the resource..
How to flatten an ExpandoObject returned via JsonResult in asp.net mvc? http://stackoverflow.com/questions/5156664/how-to-flatten-an-expandoobject-returned-via-jsonresult-in-asp-net-mvc Type new Type typeof System.Dynamic.ExpandoObject Using converter var serializer new JavaScriptSerializer serializer.RegisterConverters..
Convert a bitmap into a byte array in C#? http://stackoverflow.com/questions/7350679/convert-a-bitmap-into-a-byte-array-in-c public static byte ImageToByte Image img ImageConverter converter new ImageConverter return byte converter.ConvertTo img typeof.. ImageConverter converter new ImageConverter return byte converter.ConvertTo img typeof byte This one is convenient because it..
Numbered listbox http://stackoverflow.com/questions/745568/numbered-listbox you bind a TextBlock to your data and use a custom value converter to output the current item's number. share improve this answer..
How to implement custom JsonConverter in JSON.NET to deserialize a List of base class objects http://stackoverflow.com/questions/8030538/how-to-implement-custom-jsonconverter-in-json-net-to-deserialize-a-list-of-base and invokes the Create method implemented by our derived converter class passing in the JObject instance. This JObject instance..
What is the best C# to VB.net converter? http://stackoverflow.com/questions/88359/what-is-the-best-c-sharp-to-vb-net-converter is the best C# to VB.net converter While searching the interweb for a solution for my VB.net problems.. it to VB manually. There are some sites that offer code converters from C# to VB and vice versa but to fix all the flaws after.. csharp to vb.aspx Do you know something better c# vb.net converter share improve this question If you cannot find a good converter..
C# and Excel interop http://stackoverflow.com/questions/1111935/c-sharp-and-excel-interop Object Delimiter Object Editable Object Notify Object Converter Object AddToMru Object Local Object CorruptLoad It looks like..
Dynamically Updating TabControl Content at Runtime http://stackoverflow.com/questions/15209870/dynamically-updating-tabcontrol-content-at-runtime Height 300 Width 300 Window.Resources BooleanToVisibilityConverter x Key BoolToVisibilityConverter Window.Resources TabControl.. BooleanToVisibilityConverter x Key BoolToVisibilityConverter Window.Resources TabControl ItemsSource Binding Items SelectedItem.. Setter Property Visibility Value Binding IsVisible Converter StaticResource BoolToVisibilityConverter Setter Property Header..
Proper DataGrid search from TextBox in WPF using MVVM http://stackoverflow.com/questions/15467553/proper-datagrid-search-from-textbox-in-wpf-using-mvvm properties in the Cell style. Then we create a IMultiValueConverter to check the Cell value for a match to the search Text . This.. other projects as you only need the AttachedProperties and Converter Bind the AttachedProperty SearchValue to your TextBox Text property... for the AttachedProperty IsTextMatch using the IMultiValueConverter to return if the cells text matches the SearchValue Setter Property..
Replace bookmark text in Word file using Open XML SDK http://stackoverflow.com/questions/3308299/replace-bookmark-text-in-word-file-using-open-xml-sdk
How to convert image in byte array http://stackoverflow.com/questions/3801275/how-to-convert-image-in-byte-array
Convert Rtf to HTML http://stackoverflow.com/questions/439301/convert-rtf-to-html question I would check out this tool on CodeProject RTFConverter. This guy gives a great breakdown of how the program works along..
OneWayToSource Binding seems broken in .NET 4.0 http://stackoverflow.com/questions/4875751/onewaytosource-binding-seems-broken-in-net-4-0 is a blocking converter with state public class BlockingConverter IValueConverter public object lastValue public object Convert.. converter with state public class BlockingConverter IValueConverter public object lastValue public object Convert object value Type.. your example like this Grid Grid.Resources local BlockingConverter x Key blockingConverter x Shared False Grid.Resources StackPanel..
How to flatten an ExpandoObject returned via JsonResult in asp.net mvc? http://stackoverflow.com/questions/5156664/how-to-flatten-an-expandoobject-returned-via-jsonresult-in-asp-net-mvc improve this question You could also make a special JSONConverter that works only for ExpandoObject and then register it in an.. serialized correctly the way u want then you make another Converter or add another type to this one. Hope this helps. using System.Web.Script.Serialization.. System.Web.Script.Serialization public class ExpandoJSONConverter JavaScriptConverter public override object Deserialize IDictionary..
How to sort TreeView items using SortDescriptions in Xaml? http://stackoverflow.com/questions/5722835/how-to-sort-treeview-items-using-sortdescriptions-in-xaml HierarchicalDataTemplate ItemsSource Binding Effects Converter StaticResource myConverter ConverterParameter EffectName TextBlock.. ItemsSource Binding Effects Converter StaticResource myConverter ConverterParameter EffectName TextBlock Text Binding Path LayerName.. Binding Effects Converter StaticResource myConverter ConverterParameter EffectName TextBlock Text Binding Path LayerName HierarchicalDataTemplate.ItemTemplate..
Binding a Button Visibility to bool value in ViewModel http://stackoverflow.com/questions/7000819/binding-a-button-visibility-to-bool-value-in-viewmodel is a bool you need to declare and use a BooleanToVisibilityConverter In your resources section of the XAML BooleanToVisibilityConverter.. In your resources section of the XAML BooleanToVisibilityConverter x Key BoolToVis In your Button declaration Button Height 50.. Binding Cursor Hand Visibility Binding Path AdvancedFormat Converter StaticResource BoolToVis Note the added Converter StaticResource..
Good way to convert VB.Net to C#? [closed] http://stackoverflow.com/questions/756590/good-way-to-convert-vb-net-to-c convert VB.Net code to C# FREE developerFusion Telerik CodeConverter SharpDevelop PAID VBConversions Vbconversions VB.Net to C# Converter.. SharpDevelop PAID VBConversions Vbconversions VB.Net to C# Converter Download3000 VB.Net to C# Converter c# vb.net code conversion.. VB.Net to C# Converter Download3000 VB.Net to C# Converter c# vb.net code conversion share improve this question I..
Bind datagrid column visibility MVVM http://stackoverflow.com/questions/7711275/bind-datagrid-column-visibility-mvvm Path FrameworkElement.DataContext .IsColumnNameVisible Converter StaticResource boolToVisConverter However of course it doesn't.... .IsColumnNameVisible Converter StaticResource boolToVisConverter However of course it doesn't.. The output window does not complain.. Path FrameworkElement.DataContext .IsColumnNameVisible Converter StaticResource boolToVisConverter tk DataGrid.Columns tk DataGrid..
How to create a JSON.NET Date to String custom Converter http://stackoverflow.com/questions/8639315/how-to-create-a-json-net-date-to-string-custom-converter to create a JSON.NET Date to String custom Converter Could someone tell me please how I can create a custom converter.. int dummy 0 public class MyDateTimeConvertor DateTimeConverterBase public override object ReadJson JsonReader reader Type objectType..
GridViewColumn Width Adjustment http://stackoverflow.com/questions/9083933/gridviewcolumn-width-adjustment Width Binding ElementName lvCurDocFields Path ActualWidth Converter StaticResource widthConverter ConverterParameter 100 ValueConversion.. Path ActualWidth Converter StaticResource widthConverter ConverterParameter 100 ValueConversion typeof double typeof.. Path ActualWidth Converter StaticResource widthConverter ConverterParameter 100 ValueConversion typeof double typeof double public..
|