Hi All,
The issue was resolved and the sample code snippet is given below.
//The below one is the code which was used initially and it was build successfully without any error. But no expected output.
SketchEditConfiguration sktEditConfig = MyMapView.SketchEditor.EditConfiguration;
sktEditConfig.AllowRotate = true;
Esri.ArcGISRuntime.Geometry.Geometry newGeometry = await MyMapView.SketchEditor.StartAsync(geom);
//This below given code is replaced with the above one and now it is working fine.
SketchEditConfiguration sktEditConfig = new SketchEditConfiguration();
sktEditConfig.AllowRotate = true;
Esri.ArcGISRuntime.Geometry.Geometry newGeometry = await MyMapView.SketchEditor.StartAsync(geom,SketchCreationMode.Polyline,sktEditConfig);