Click here to Skip to main content
15,907,329 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to bind a wpf app to the hardware? Pin
BenScharbach12-Aug-17 9:37
BenScharbach12-Aug-17 9:37 
Questionhi how can i download offline Mappoint SDK API to integrate in my .net desktop software where i can find that file Pin
shaz171-Aug-17 1:51
shaz171-Aug-17 1:51 
AnswerRe: hi how can i download offline Mappoint SDK API to integrate in my .net desktop software where i can find that file Pin
Afzaal Ahmad Zeeshan1-Aug-17 2:55
professionalAfzaal Ahmad Zeeshan1-Aug-17 2:55 
AnswerRe: hi how can i download offline Mappoint SDK API to integrate in my .net desktop software where i can find that file Pin
Richard MacCutchan1-Aug-17 5:18
mveRichard MacCutchan1-Aug-17 5:18 
Questionhi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
shaz171-Aug-17 0:09
shaz171-Aug-17 0:09 
AnswerRe: hi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
Pete O'Hanlon1-Aug-17 0:43
mvePete O'Hanlon1-Aug-17 0:43 
GeneralRe: hi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
shaz171-Aug-17 1:28
shaz171-Aug-17 1:28 
GeneralRe: hi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
Pete O'Hanlon1-Aug-17 1:50
mvePete O'Hanlon1-Aug-17 1:50 
GeneralRe: hi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
shaz171-Aug-17 1:56
shaz171-Aug-17 1:56 
GeneralRe: hi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
Pete O'Hanlon1-Aug-17 2:05
mvePete O'Hanlon1-Aug-17 2:05 
GeneralRe: hi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
shaz171-Aug-17 2:06
shaz171-Aug-17 2:06 
GeneralRe: hi how can i download offline Mpoint SDK API to integrate in my .net desktop softwrea Pin
Pete O'Hanlon1-Aug-17 21:02
mvePete O'Hanlon1-Aug-17 21:02 
QuestionHow to adjust recording balance programmatically using WaveLib.AudioMixer? Pin
Member 189821031-Jul-17 23:11
Member 189821031-Jul-17 23:11 
QuestionError: The "GenerateResource" task failed unexpectedly in win 7 - 64 bit ? Pin
Member 245846731-Jul-17 21:45
Member 245846731-Jul-17 21:45 
AnswerRe: Error: The "GenerateResource" task failed unexpectedly in win 7 - 64 bit ? Pin
Bernhard Hiller1-Aug-17 22:32
Bernhard Hiller1-Aug-17 22:32 
GeneralRe: Error: The "GenerateResource" task failed unexpectedly in win 7 - 64 bit ? Pin
Member 24584672-Aug-17 19:00
Member 24584672-Aug-17 19:00 
GeneralRe: Error: The "GenerateResource" task failed unexpectedly in win 7 - 64 bit ? Pin
Bernhard Hiller2-Aug-17 21:04
Bernhard Hiller2-Aug-17 21:04 
GeneralRe: Error: The "GenerateResource" task failed unexpectedly in win 7 - 64 bit ? Pin
Member 24584673-Aug-17 16:31
Member 24584673-Aug-17 16:31 
QuestionHelp C# and Entity Developers Devart Pin
Alfredo Mendoza 31-Jul-17 19:18
Alfredo Mendoza 31-Jul-17 19:18 
AnswerRe: Help C# and Entity Developers Devart Pin
Pete O'Hanlon31-Jul-17 19:47
mvePete O'Hanlon31-Jul-17 19:47 
QuestionEarly session timeout in asp.net for multiple sessions Pin
punit.vk30-Jul-17 18:04
punit.vk30-Jul-17 18:04 
AnswerRe: Early session timeout in asp.net for multiple sessions Pin
OriginalGriff30-Jul-17 20:25
mveOriginalGriff30-Jul-17 20:25 
JokeC# WeakClone and DeepClone Pin
Jeong, WonYoung(Brad)28-Jul-17 20:12
professionalJeong, WonYoung(Brad)28-Jul-17 20:12 
Why have ICloneable been made?
Let's see the below test source. The outcome would turn out quite different from what we have expected.
So, we need DeepClone. but, non-serializable object needs some methods
(refer to this: A Generic Method for Deep Cloning in C# 3.0[^] ).
    class Program
    {
        static void Main(string[] args)
        {
            MyClass c1 = new MyClass();
            c1.Name = "Name1";
            c1.Value = "Value1";
            MyClass c2 = c1.Clone();
            c2.Name = "Name2";
            c2.Value = "Value2";
            c2.Lists.Add("D");//Lists was added in c2 ONLY.

<pre>
        Console.WriteLine(c1.ToString());// "D" is also added in c1. 
        Console.WriteLine(c2.ToString());
        Console.ReadLine();
    }
}
public class MyClass: ICloneable
{
    public string Name { get; set; }
    public string Value { get; set; }
    public List<string> Lists = new List<string>() { "A", "B", "C" };

    public MyClass()
    {
    }
    public MyClass(MyClass c)
    {
        Name = c.Name;
        Value = c.Value;
        Lists = c.Lists;
    }

    public MyClass Clone()
    {
        return this.MemberwiseClone() as MyClass;
    }
    object ICloneable.Clone()
    {
        return this.MemberwiseClone();
    }

    public override string ToString()
    {
        StringBuilder sb = new StringBuilder();
        sb.AppendFormat("Name={0}, ", Name);
        sb.AppendFormat("Value={0}, ", Value);
        sb.Append("Lists=");
        bool b = false;
        foreach (var item in Lists)
        {
            if (b)
                sb.AppendFormat("|{0}", item);
            else
                sb.AppendFormat("{0}", item); b = true;
        }                
        return sb.ToString();
    }
}</pre>
Brad
You go, we go~.

GeneralRe: C# WeakClone and DeepClone Pin
Pete O'Hanlon29-Jul-17 3:23
mvePete O'Hanlon29-Jul-17 3:23 
GeneralRe: C# WeakClone and DeepClone Pin
Jeong, WonYoung(Brad)29-Jul-17 12:34
professionalJeong, WonYoung(Brad)29-Jul-17 12:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.