Menu Close

Blog

Slide 1

Microsoft Business Applications Blogposts, YouTube Videos and Podcasts

Helping Businesses with Technology

Slide 2

Microsoft Business Applications Blogposts, YouTube Videos and Podcasts

Helping Businesses with Technology

Slide 3

Microsoft Business Applications Blogposts, YouTube Videos and Podcasts

Helping Businesses with Technology

previous arrow
next arrow

DIFFERENCE BETWEEN CONVERT.TOSTRING() AND TOSTRING()

DIFFERENCE BETWEEN CONVERT.TOSTRING() AND TOSTRING()

Convert.Tostring() handles null, while ToString() doesn’t  and throws a NULL
Reference exception.

Depending on the type of the application architecture and what you are trying to achieve , 
you choose one over the other.

using System;
namespace ConsoleApplication4
{
    public class MainClass
    {
        public static void Main()
        {
            Customer C1 = null;
            string str = Convert.ToString(C1);
            Console.WriteLine(str);
            Console.ReadLine();
        }
    }
    public class Customer
    {
        public string Name { get; set; }
      
      
    }
}
   

Share this:

WHY SHOULD YOU OVERRIDE EQUALS METHOD

WHY SHOULD YOU OVERRIDE EQUALS METHOD

1. WHAT IS EQUALS METHOD

2. WHY SHOULD YOU OVERRIDE IT.

using System;

namespace ConsoleApplication4
{
    public class MainClass
    {
        public static void Main()
        {
            Customer C1 = new Customer();
            C1.FirstName = “Malla”;
            C1.LastName = “Gurram”;

            Customer C2 = new Customer();
            C2.FirstName = “Malla”;
            C2.LastName = “Gurram”;


            Console.WriteLine(C1 == C2);
            Console.WriteLine(C1.Equals(C2));
            Console.ReadLine();
        }

    }

    public class Customer
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }

        public override bool Equals(object obj)
        {
           
            if(obj == null)
            {
                return false;
            }

            if(!(obj is Customer))
            {
                return false;
            }

            return this.FirstName == ((Customer)obj).FirstName &&
                this.LastName == ((Customer)obj).LastName;
        }

        public override int GetHashCode()
        {
            return this.FirstName.GetHashCode() ^ this.LastName.GetHashCode();
        }
    }
}

   
Share this:

WHY SHOULD WE OVERRIDE TOSTRING METHOD

WHY SHOULD WE OVERRIDE TOSTRING METHOD

1. What is ToString() Method.

2. Why should we override it ?


using System;
using System.Reflection;
namespace ConsoleApplication4
{
    public class MainClass
    {
        public static void Main()
        {
            int Number = 10;
            Console.WriteLine(Number.ToString());
            Console.ReadLine();
            Customer C1 = new Customer();
            C1.FirstName = “Malla”;
            C1.LastName = “Gurram”;
            //Console.WriteLine(C1.ToString());   
            Console.WriteLine(Convert.ToString(C1));
            Console.ReadLine();
        }
    }
    public class Customer
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public override string ToString()
        {
            return this.LastName + “, ” + this.FirstName;
        }
    }
}
   

Share this:

REFLECTION WITH SAMPLE EXAMPLE IN C#

REFLECTION WITH SAMPLE EXAMPLE IN C#


This is a simple windows application to display the methods, properties and constructors using “Reflections” in c#


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Reflection;
namespace ReflectionDemo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }   

        private void btnDiscoverTypeInformation_Click_Click(object sender, EventArgs e)
        {
            string TypeName = txtTypeName.Text;

            

            Type  T = Type.GetType(TypeName);
                            lstMethods.Items.Clear();
            lstProperties.Items.Clear();
            lstConstructors.Items.Clear();

            MethodInfo[] methods = T.GetMethods();


            foreach(MethodInfo  method in methods)

            {
                lstMethods.Items.Add(method.ReturnType.Name + ” ” + method.Name);
                
            }


            PropertyInfo[] properties = T.GetProperties();           
            foreach (PropertyInfo property in properties)
            {
                lstProperties.Items.Add(property.PropertyType.Name + ” ” + property.Name);

            }


            ConstructorInfo[] constructors = T.GetConstructors();
            foreach (ConstructorInfo constructor in constructors)
            {
                lstConstructors.Items.Add(constructor.ToString());

            }
        }

            
    }
}

Share this:

POWER MAILCHIMP FOR DYNAMICS CRM

POWER MAILCHIMP INTEGRATION WITH MICROSOFT DYNAMICS CRM

To send bulk emails from Microsoft Dynamics 365 and track bulk email statistics back to your CRM contacts, leads and accounts. PowerMailChimp is a MailChimp CRM integration tool that connects the powerful, robust, and affordable third-party bulk email platform, MailChimp, with Dynamics 365. Use static or dynamic CRM marketing lists to send out bulk emails such as newsletters, special offers, and more, all from within Dynamics 365.
PowerMailChimp also tracks vital bulk email statistics such as sends, successful deliveries, opens, clicks, bounces, and unsubscribes back to individual CRM contacts, leads and accounts. This lets you see who opened the email, who clicked on which links, and if anyone unsubscribed. The statistics are powerful, and the add-on is simple to use.
1)    What does Mailchimp do?
Ø Send beautiful, rich, HTML emails without needing any HTML knowledge by using MailChimp’s robust template editor
Ø Use CRM information to create dynamic content in your templates using merge tags
Ø Good for current MailChimp users AND users brand new to MailChimp!
2)    Take advantage of CRM Workflow:
Ø Automatically fire off a response when a bulk email receiver clicks on a specific link, unsubscribes, opens the email, etc.
Ø Automatically add a bulk email recipient who shows interest in a specific product to a CRM marketing list
Ø Decide which CRM users have rights to PowerMailChimp by assigning the PowerMailChimp user (or the PowerMailChimp read-only user) security role.


3)     Other PowerPack add-ons to further enhance functionality!

Ø Send surveys in bulk emails with PowerMailChimp and PowerSurveyPlus
Ø Track web traffic of individual contacts and leads with PowerMailChimp and PowerWebTraffic
Ø Collect bulk email subscribers with PowerMailChimp and PowerWebForm
Ø View all bulk email statistics and other related records, specific to one individual  contact, lead or account with PowerMailChimp and PowerOneView
Power MailChimp is a product of  Power Objects which helps to send bulk emails to potential customers or marketing list in CRM, or hot leads to customers  and to find out the activity of  the customer Power MailChimp  will be used.
PowerMailChimp is reliable product and license is per user around $2, its all depends upon the organisation, how many user will be using the product.

————————————————————————————————————————–

Share this: