Можно ли получить в label1 результат из dll переменной res - C#
Формулировка задачи:
Допустим есть dll ка и прога в которой она добавленна. Можно ли получить в label1 результат из dll переменной res.
dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ClassLibrary1
{
public class Class1
{
public int a = 3;
public int b = 1;
public int res;
public int result {
get {
return res;
}
set {
res = a - b;
}
}
}
Программа
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ClassLibrary1;
namespace DLLL
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
// По нажатию на кнопку.
}
}
}
}Решение задачи: «Можно ли получить в label1 результат из dll переменной res»
textual
Листинг программы
public string Send
{
get {
return Send;
}