UPDATED
I think I found your error.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace Fun
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
merge_sort();
}
public void merge_sort()
{
she Object1 = new she();
Object1.DoMethod(2);//Now this will do your work.
}
}
public class she
{
public void DoMethod(int head)
{
//Do what do you want
}
}
}
Please Explain how do access the Class she?
2). InitializeComponent();
In my words I think it has the all your output, and also it's exists in the compiled assembly .
3). public static void Main(string[] args);
In WPF Silverlight WP8 application do not need this, Because when App.Xaml is build Main method will automatically generated.If you look at the project properties you'll find there's a setting for you to choose the startup object. So if you want, you can provide your own class that implements Main().