Posts

Showing posts with the label Dotnetonline Trainoing

Stylesheet

Image
import * as React from 'react'; import styles from './Employeespotlight.module.scss'; import { IEmployeespotlightProps } from './IEmployeespotlightProps'; import { escape } from '@microsoft/sp-lodash-subset'; import * as $ from 'jquery'; import { WebPartContext } from '@microsoft/sp-webpart-base'; import { SPHttpClient, SPHttpClientResponse } from '@microsoft/sp-http'; import { SliderHelper } from './Helper'; export interface SpotlightDetails { userDisplayName: string; userEmail: string; userProfilePic: string; description: string; designation?: string; } export interface IStateEmployeeSlider { value:SpotlightDetails[]; } var result=[]; export interface ResponceDetails { title: string; id: string; } export default class Employeespotlight extends React.Component { private defaultProfileImageUrl: string = "/_layouts/15/userphoto.aspx?size=L"; private helper: SliderHelper = new SliderHe...

DIFFERENCE BETWEEN STRING AND STRING BUILDER IN C#:

  Posted by Ganesan - +919042710472                         DIFFERENCE BETWEEN STRING AND STRING BUILDER IN C#: STRING:   String is immutable, which means once you create an instance of string you cannot change the string's value. Then this will keep the old instance and create a new instance with a new value in the memory. Example: String strMyValue ="Hello Visitor";  //create a new string instance instead of changing the old one. strMyValue +="How Are"; strMyValue +="you?"; STRINGBUILDER:  String builder is mutable, it means if you change the value of string using string builder, it will not create a new instance, instead .it will update the value in the existing instance. Example: StringBuilder SbMyValue =new stringBuilder(" "); Sb MyValue.Append("Hello Visitor");sss Sb MyValue.Append("How Are You?"); String strMyValue= sbMyvalue. Testing(); NAMESPACE STRING : The string class in the System namespac...