BindingOperations.GetBinding() [0]
BindingOperations.ClearBinding()
| namespace System | |
| { | |
| using System.Globalization; | |
| // source: https://gist.github.com/sandrock/6fe3298b8ac6d9d0d9872dd811a63908 | |
| /// <summary> | |
| /// Extension methods for common types that provide ToInvariantString() capability. | |
| /// </summary> |
| namespace MyWebApi | |
| { | |
| public abstract class ApiController : System.Web.Http.ApiController | |
| { | |
| /// <summary> | |
| /// Returns a NotFound HTTP result (404) with a negotiated full-bodyed result. | |
| /// </summary> | |
| /// <returns></returns> | |
| protected override System.Web.Http.Results.NotFoundResult NotFound() |
| namespace Home | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| public static class ConvertEx | |
| { | |
| /// <summary>Reads a hex string into bytes</summary> | |
| public static IEnumerable<byte> HexadecimalStringToBytes(string hex) |
| namespace WhateverNamespaceYouWant | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Configuration; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Text; | |
| using System.Web; |
| namespace MyApp | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class EmailAddress | |
| { | |
| public EmailAddress() | |
| { |
BindingOperations.GetBinding() [0]
BindingOperations.ClearBinding()
| public class Foo{ | |
| public void Bar() { | |
| var request = (HttpWebRequest)HttpWebRequest.Create(context.UrlPath); | |
| // ........ | |
| // get response | |
| HttpWebResponse response; | |
| try | |
| { | |
| response = (HttpWebResponse)request.GetResponse(); |
| namespace MyPhoneApp.Behaviors | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using System.Windows.Controls; |
| public static class StringTransformer | |
| { | |
| /// <summary> | |
| /// Inserts HTML line breaks (<br />) before all newlines. | |
| /// </summary> | |
| /// <param name="text">text containing lines</param> | |
| /// <returns></returns> | |
| public static string AddHtmlLineBreaks(this string text) | |
| { |