help C# errors

December 7, 2010 at 20:16:22
Specs: Windows XP
Who can help for C# errors

HELP - All for C# error from "The Complete Reference - Herbert Schildt" Error - Unsafe code may only appear if compiling with /unsafe

Errors from The Complete Reference errors pg. 608 - UnsafeCode, pg. 609 - FixedCode, pg.610 PtrArithDemo, 612 - PtrIndexDemo

Sample -
using System;

class _611_PtrArray
{
class Program
{
unsafe static void Main()
{
int[] nums = new int[10];
fixed (int* p = &nums[0], p2 = nums)
{
if (p == p2)
Console.WriteLine("p and p2 point to same address.");
}
}
}
}


See More: help C# errors

Report •


#1
Report •
Related Solutions


Ask Question