/// <summary> /// Create a dataunit to hode the code HTML tag. /// </summary> /// <param name="str">The code to create the data unit with.</param> private void CreateCodeDataUnit(String str) { if (str.Trim().Length > 0) { CodeDataUnit d = new CodeDataUnit(); d.Code = str; this.page.AddDataUnit(d); } }
/// <summary> /// Create a dataunit to hode the code HTML tag. /// </summary> /// <param name="str">The code to create the data unit with.</param> private void CreateCodeDataUnit(String str) { if (str.Trim().Length > 0) { var d = new CodeDataUnit { Code = str }; _page.AddDataUnit(d); } }