CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of array
C#
<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:sys="clr-namespace:System;assembly=mscorlib">
  <Grid>
    <Grid.DataContext>
      <x:Array Type="sys:String">
        <sys:String>Red</sys:String>
        <sys:String>Yellow</sys:String>
        <sys:String>Blue</sys:String>
by Vijay Sharma   January 07, 2011 @ 8:55am
157 Views
no comments
 
C#
//სურათის ობიექტის კონვერტაცია ბაიტების მასივში.
private byte[] ImageToByteArray(System.Drawing.Image imageIn) {
 MemoryStream ms = new MemoryStream();
 imageIn.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
 return ms.ToArray();
}
 
//სურათის ბაიტების მასივის კონვერტაცია სურათის ობიექტში
private Image ByteArrayToImage(byte[] byteArrayIn) {
 MemoryStream ms = new MemoryStream(byteArrayIn);
by Zviadi   March 24, 2010 @ 1:20pm
373 Views
no comments
 
C#
[TestMethod]
public void TestArrayFlattening()
{
    var expected = "abcdefghijklmnopqrstuvwxyz_helloworld".ToCharArray();
 
    var actual = new List<char>();
 
    var listOfList = new List<char[]>
                     {
                         new[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g' }, 
by Jon Erickson   November 12, 2009 @ 2:43pm
Tags: c# array
287 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate