I can't solve this issue , please help

So I keep getting these errors:
Helper.cs (74,17): error CS1041 : identifier expected
Helper.cs (75,29): error CS1518 : Expected ‘class’, ‘delegate’, 'enum’or ‘struct’
Helper.cs (76,29): error CS8025 : Parsing error
Helper.cs (76,29): error CS1038 : #endregion directive expected

Here’s the script

#region Object Structures 

public struct CameraTargetObject
{
	private Vector3 position; 
	
	private Transform xForm;
	
	public Vector3 Position; 
	{
		get {return Position;}
		**set** {Position = value;}
	}

	public **Transform** XForm 
	{
		get(return xForm;)
		set(xForm = value;)
	}

	public void Init(string camName, Vector3 pos, Transform transform, Transform parent)
	{
		position = pos;
		xForm = transform; 
		xForm.name = camName;
		xForm.parent = parent;
		xForm.localPosition = Vector3.zero;
		xForm.localPosition = position;
	}
}

#endregion

#region public struct CameraMountPoint
	{
		private Vector3 position; 
		
		private Transform XForm;
		
		public Vector3 Position; 
	{
		get(return xForm;)
			set(xForm = value;)
	}
	{
		get { return position;}
		set { Position = value;}
		
	}
		
		public void Init(string camName, Vector3 pos, Transform transform, Transform parent)
		{
			position = pos;
			xForm = transform; 
			xForm.name = camName;
			xForm.parent = parent;
			xForm.localPosition = Vector3.zero;
			xForm.localPosition = position;
		}
}

#endregion

It also says Parser error : set and Transform

Errors are:

  • line 11 / 12: You used the property name itself inside the property. It can’t read / write itself. You probably want to use “position” instead of “Position”. And of course without the “**”. You can’t make things bold in a code block, just for the future.
  • line 27: remove this line, it’s useless.
  • line 34: You “regioned out” the header of your struct. Remove the #region in front of that line and move it into an empty line before that header.
  • Line 40: This line is wrong here. Cut it out and move it down between the lines 44 and 45
  • line 40: Instead of the property you had there you probably want public Transform XForm in this line.
  • line 42 / 43: You used the wrong brackets. You need { } instead of ( )
  • line 47: Again, you used the property itself inside the setter.
  • line 57: Again, useless line.

couple of problems , public struct CameraMountPoint after #region public struct CameraMountPoint and remove ** from the code and change your getter and setters to this format

 public Vector3 Position {
 
        get { return position ; }
 
        set { position  = value; }
 
    }

the shorter version is better

public Vector3 Position { get; set; }