public static SecuredTypeStructure AddStepValue(SecuredTypeStructure aStructure)
 {
     aStructure.xValue += 100;
     aStructure.yValue += 100;
     Console.WriteLine("New values {0}", aStructure.ToString());
     return(aStructure);
 }
 public static SecuredTypeStructure AddStepValue(SecuredTypeStructure aStructure)
 {
     aStructure.xValue += 100;
      aStructure.yValue += 100;
      Console.WriteLine ("New values {0}", aStructure.ToString());
      return aStructure;
 }
        public static void Main()
        {
            try
             {
            mystruct = new SecuredTypeStructure(10,10);

             }
             catch (SecurityException e)
             {
            Console.WriteLine(
               "Structure custom constructor: {0}", e.Message);
             }

             // The call to the default constructor
             // does not throw an exception.
             try
             {
            mystruct = StructureManager.AddStepValue(
               new SecuredTypeStructure());
             }
             catch (SecurityException e)
             {
            Console.WriteLine(
               "Structure default constructor: {0}", e.Message);
             }

             try
             {
            StructureManager.AddStepValue(mystruct);
             }

             catch (Exception e)
             {
            Console.WriteLine(
               "StructureManager add step: {0}", e.Message);
             }
        }