umm, id highly recommend not coming here for that sort of advice cause im myself learning c#, however:
is the namespace correct?
are they in the same file? (png, i mean)
are the names the same?
if ur not using visual studio, take out the .sln file.
if none of these work: refer to the discord...